Skip to content

Commit 60ad148

Browse files
authored
Merge pull request #599 from Automattic/feature/travis-test-against-php8-no-failure
Travis: add build against PHP 8.0
2 parents 0496ce9 + d5528e4 commit 60ad148

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
@@ -67,8 +67,13 @@ jobs:
6767
# Run PHPCS against VIPCS.
6868
- ./bin/phpcs
6969

70-
# Builds which need a different distro.
70+
# Builds which need a different distro or specific PHPCS version.
7171
- stage: test
72+
- php: 8.0
73+
env: PHPCS_BRANCH="dev-master"
74+
- php: 8.0
75+
# PHPCS 3.5.7 is the lowest version of PHPCS which supports PHP 8.0.
76+
env: PHPCS_BRANCH="3.5.7"
7277
- php: 5.5
7378
dist: trusty
7479
env: PHPCS_BRANCH="dev-master"
@@ -98,7 +103,7 @@ before_install:
98103
install:
99104
- travis_retry composer require squizlabs/php_codesniffer:"$PHPCS_BRANCH" --no-update --no-suggest --no-scripts
100105
- |
101-
if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
106+
if [[ $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "8.0" ]]; then
102107
# PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform
103108
# requirements to get PHPUnit 7.x to install on nightly.
104109
travis_retry composer install --ignore-platform-reqs --no-suggest

0 commit comments

Comments
 (0)