Skip to content

Commit 5780cd5

Browse files
committed
Chore - Require positive tests on PHP 8.0, additionally test PHP 8.1
1 parent 550ed95 commit 5780cd5

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.drone.jsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ local composer(phpversion, params) = {
2525
local phpunit(phpversion) = {
2626
name: "PHPUnit",
2727
image: "joomlaprojects/docker-images:php" + phpversion,
28-
[if phpversion == "8.0" then "failure"]: "ignore",
28+
[if phpversion == "8.1" then "failure"]: "ignore",
2929
commands: ["vendor/bin/phpunit"]
3030
};
3131

@@ -110,5 +110,6 @@ local pipeline(name, phpversion, params) = {
110110
pipeline("7.2", "7.2", "--prefer-stable"),
111111
pipeline("7.3", "7.3", "--prefer-stable"),
112112
pipeline("7.4", "7.4", "--prefer-stable"),
113-
pipeline("8.0", "8.0", "--ignore-platform-reqs --prefer-stable")
113+
pipeline("8.0", "8.0", "--prefer-stable"),
114+
pipeline("8.1", "8.1", "--prefer-stable")
114115
]

.drone.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ steps:
181181
image: joomlaprojects/docker-images:php8.0
182182
commands:
183183
- php -v
184-
- composer update --ignore-platform-reqs --prefer-stable
184+
- composer update --prefer-stable
185185
volumes:
186186
- name: composer-cache
187187
path: /tmp/composer-cache
@@ -190,6 +190,34 @@ steps:
190190
image: joomlaprojects/docker-images:php8.0
191191
commands:
192192
- vendor/bin/phpunit
193+
194+
volumes:
195+
- name: composer-cache
196+
host:
197+
path: /tmp/composer-cache
198+
199+
---
200+
kind: pipeline
201+
name: PHP 8.1
202+
203+
platform:
204+
os: linux
205+
arch: amd64
206+
207+
steps:
208+
- name: composer
209+
image: joomlaprojects/docker-images:php8.1
210+
commands:
211+
- php -v
212+
- composer update --prefer-stable
213+
volumes:
214+
- name: composer-cache
215+
path: /tmp/composer-cache
216+
217+
- name: PHPUnit
218+
image: joomlaprojects/docker-images:php8.1
219+
commands:
220+
- vendor/bin/phpunit
193221
failure: ignore
194222

195223
volumes:
@@ -199,6 +227,6 @@ volumes:
199227

200228
---
201229
kind: signature
202-
hmac: fe43177b772ed619009c33251a93354217bc6c33b6c34e2a3249a28508511445
230+
hmac: 4af173bc17cfa22a3f0fcef83a9535adb76d5b3727ab33d8d3c4a51f994525a3
203231

204232
...

0 commit comments

Comments
 (0)