Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis: add build against PHP 8.0 #599

Merged
merged 1 commit into from
Dec 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ jobs:
# Run PHPCS against VIPCS.
- ./bin/phpcs

# Builds which need a different distro.
# Builds which need a different distro or specific PHPCS version.
- stage: test
- php: 8.0
env: PHPCS_BRANCH="dev-master"
- php: 8.0
# PHPCS 3.5.7 is the lowest version of PHPCS which supports PHP 8.0.
env: PHPCS_BRANCH="3.5.7"
- php: 5.5
dist: trusty
env: PHPCS_BRANCH="dev-master"
Expand Down Expand Up @@ -98,7 +103,7 @@ before_install:
install:
- travis_retry composer require squizlabs/php_codesniffer:"$PHPCS_BRANCH" --no-update --no-suggest --no-scripts
- |
if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
if [[ $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "8.0" ]]; then
# PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform
# requirements to get PHPUnit 7.x to install on nightly.
travis_retry composer install --ignore-platform-reqs --no-suggest
Expand Down