Skip to content

Commit 35b074d

Browse files
authored
Merge pull request #50 from PHPCSStandards/feature/travis-test-against-php8-no-failure
Travis: add build against PHP 8.0
2 parents 656492a + 7d29e66 commit 35b074d

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)