From 5780cd5bbcd1e77546ff623d4a3b295fcfefca7f Mon Sep 17 00:00:00 2001 From: Niels Braczek Date: Thu, 23 Sep 2021 13:23:27 +0200 Subject: [PATCH] Chore - Require positive tests on PHP 8.0, additionally test PHP 8.1 --- .drone.jsonnet | 5 +++-- .drone.yml | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index ab2b93f7..00a89d9d 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -25,7 +25,7 @@ local composer(phpversion, params) = { local phpunit(phpversion) = { name: "PHPUnit", image: "joomlaprojects/docker-images:php" + phpversion, - [if phpversion == "8.0" then "failure"]: "ignore", + [if phpversion == "8.1" then "failure"]: "ignore", commands: ["vendor/bin/phpunit"] }; @@ -110,5 +110,6 @@ local pipeline(name, phpversion, params) = { pipeline("7.2", "7.2", "--prefer-stable"), pipeline("7.3", "7.3", "--prefer-stable"), pipeline("7.4", "7.4", "--prefer-stable"), - pipeline("8.0", "8.0", "--ignore-platform-reqs --prefer-stable") + pipeline("8.0", "8.0", "--prefer-stable"), + pipeline("8.1", "8.1", "--prefer-stable") ] diff --git a/.drone.yml b/.drone.yml index baf1e9d0..dce1bba4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -181,7 +181,7 @@ steps: image: joomlaprojects/docker-images:php8.0 commands: - php -v - - composer update --ignore-platform-reqs --prefer-stable + - composer update --prefer-stable volumes: - name: composer-cache path: /tmp/composer-cache @@ -190,6 +190,34 @@ steps: image: joomlaprojects/docker-images:php8.0 commands: - vendor/bin/phpunit + +volumes: +- name: composer-cache + host: + path: /tmp/composer-cache + +--- +kind: pipeline +name: PHP 8.1 + +platform: + os: linux + arch: amd64 + +steps: +- name: composer + image: joomlaprojects/docker-images:php8.1 + commands: + - php -v + - composer update --prefer-stable + volumes: + - name: composer-cache + path: /tmp/composer-cache + +- name: PHPUnit + image: joomlaprojects/docker-images:php8.1 + commands: + - vendor/bin/phpunit failure: ignore volumes: @@ -199,6 +227,6 @@ volumes: --- kind: signature -hmac: fe43177b772ed619009c33251a93354217bc6c33b6c34e2a3249a28508511445 +hmac: 4af173bc17cfa22a3f0fcef83a9535adb76d5b3727ab33d8d3c4a51f994525a3 ...