Skip to content

Commit

Permalink
Chore - Require positive tests on PHP 8.0, additionally test PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nibra committed Sep 23, 2021
1 parent 550ed95 commit 5780cd5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
};

Expand Down Expand Up @@ -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")
]
32 changes: 30 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -199,6 +227,6 @@ volumes:

---
kind: signature
hmac: fe43177b772ed619009c33251a93354217bc6c33b6c34e2a3249a28508511445
hmac: 4af173bc17cfa22a3f0fcef83a9535adb76d5b3727ab33d8d3c4a51f994525a3

...

0 comments on commit 5780cd5

Please sign in to comment.