Skip to content

Commit 72eaae3

Browse files
committed
Travis: add build against PHP 8.0
PHP 8.0 has been branched off two months ago, so `nightly` is now PHP 8.1 and in the mean time PHP 8.0 was released last week. As of today, there is a PHP 8.0 image available on Travis. This PR adds a new build against PHP 8.0 to the matrix and, as PHP 8.0 has been released, that build is not allowed to fail.
1 parent cda358f commit 72eaae3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- php: 7.2
1919
- php: 7.3
2020
- php: 7.4
21-
# Nightly is PHP 8.0 since Feb 2019.
21+
- php: 8.0
22+
# Nightly is PHP 8.1 since Oct 2020.
2223
- php: nightly
2324
addons:
2425
apt:
@@ -97,13 +98,12 @@ jobs:
9798
before_install:
9899
# Speed up build time by disabling Xdebug when its not needed.
99100
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
100-
# PHPUnit 8.x is not (yet) supported, so prevent issues with Travis images using it.
101101
- |
102-
if [[ $TRAVIS_PHP_VERSION != "nightly" ]]; then
103-
travis_retry composer install
104-
elif [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
102+
if [[ $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "8.0" ]]; then
105103
// Allow installing "incompatible" PHPUnit version on PHP 8/nightly.
106104
travis_retry composer install --ignore-platform-reqs
105+
else
106+
travis_retry composer install
107107
fi
108108
109109
script:

0 commit comments

Comments
 (0)