Skip to content

Commit 9ab06e4

Browse files
committed
Run tests on PHP 8.
1 parent 25f623a commit 9ab06e4

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.travis.yml

Lines changed: 13 additions & 8 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:
@@ -19,14 +19,19 @@ matrix:
1919
- php: 7.2
2020
env: STATIC_ANALYSIS=1 DEFAULT=0
2121

22-
before_script:
23-
- composer update --no-interaction
24-
25-
- if [[ $STATIC_ANALYSIS == 1 ]]; then composer stan-setup; fi
22+
install:
23+
- |
24+
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
25+
composer install --no-interaction --ignore-platform-reqs
26+
elif [[ $STATIC_ANALYSIS == 1 ]]; then
27+
composer stan-setup
28+
else
29+
composer install
30+
fi
2631
2732
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
33+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.4 ]]; then vendor/bin/phpunit; fi
34+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
3035

3136
- |
3237
if [[ $STATIC_ANALYSIS == 1 ]]; then
@@ -36,7 +41,7 @@ script:
3641
- if [[ $PHPCS == 1 ]]; then composer cs-check; fi
3742

3843
after_success:
39-
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.3 ]]; then bash <(curl -s https://codecov.io/bash); fi
44+
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then bash <(curl -s https://codecov.io/bash); fi
4045

4146
notifications:
4247
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)