Skip to content

Commit 295995d

Browse files
committed
Run tests on PHP 8.
1 parent 5b1319e commit 295995d

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: php
22

33
php:
44
- 7.2
5-
- 7.3
65
- 7.4
6+
- 'nightly'
77

88
env:
99
global:
@@ -25,14 +25,22 @@ before_script:
2525
- if [[ $STATIC_ANALYSIS == 1 ]]; then composer stan-setup; fi
2626

2727
script:
28-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.3 ]]; then vendor/bin/phpunit; fi
29-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.3 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
28+
- |
29+
if [[ $DEFAULT == 1 ]]; then
30+
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
31+
omposer install --no-interaction --ignore-platform-reqs
32+
elif [[ $TRAVIS_PHP_VERSION == 7.4 ]]; then
33+
vendor/bin/phpunit --coverage-clover=clover.xml
34+
else
35+
vendor/bin/phpunit
36+
fi
37+
fi
3038
3139
- if [[ $STATIC_ANALYSIS == 1 ]]; then composer stan; fi
3240
- if [[ $PHPCS == 1 ]]; then composer cs-check; fi
3341

3442
after_success:
35-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.3 ]]; then bash <(curl -s https://codecov.io/bash); fi
43+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then bash <(curl -s https://codecov.io/bash); fi
3644

3745
notifications:
3846
email: false

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"require-dev": {
2626
"cakephp/cakephp-codesniffer": "^4.0",
27-
"phpunit/phpunit": "~8.5.0",
27+
"phpunit/phpunit": "^8.5 || ^9.3",
2828
"cakephp/bake": "^2.0"
2929
},
3030
"autoload": {

0 commit comments

Comments
 (0)