Skip to content

Commit 7d29e66

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 two new builds against PHP 8.0 to the matrix and, as PHP 8.0 has been released, these builds are not allowed to fail.
1 parent 656492a commit 7d29e66

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ jobs:
100100
# PHPCS is only compatible with PHP 7.4 as of version 3.5.0.
101101
- php: 7.4
102102
env: PHPCS_VERSION="3.5.0"
103+
- php: 8.0
104+
env: PHPCS_VERSION="dev-master" LINT=1
105+
# PHPCS is only compatible with PHP 8.0 as of version 3.5.7.
106+
- php: 8.0
107+
env: PHPCS_VERSION="3.5.7"
103108

104109
# PHP 5.4/5.5 need trusty.
105110
- php: 5.5
@@ -146,8 +151,8 @@ before_install:
146151
# --prefer-dist will allow for optimal use of the travis caching ability.
147152
# The Composer PHPCS plugin takes care of setting the installed_paths for PHPCS.
148153
- |
149-
if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
150-
# Not all dependencies allow for installing on nightly yet, so ignore platform requirements.
154+
if [[ $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "8.0" ]]; then
155+
# Not all dependencies allow for installing on PHP 8.0+, so ignore platform requirements.
151156
travis_retry composer install --prefer-dist --no-suggest --ignore-platform-reqs
152157
else
153158
travis_retry composer install --prefer-dist --no-suggest

0 commit comments

Comments
 (0)