From 1c1156f9779782920dd005ceec5d0db6ed8961fa Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 4 Dec 2020 07:49:36 +0100 Subject: [PATCH] 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. --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ce5e8879..2a5d3fd1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,12 @@ jobs: - composer validate - stage: test - php: 7.4 + php: 8.0 + env: PHPCS_VERSION="dev-master" LINT=1 + - php: 8.0 + # Lowest PHPCS version on which PHP 8.0 is supported. + env: PHPCS_VERSION="3.5.7" + - php: 7.4 env: PHPCS_VERSION="dev-master" LINT=1 - php: 7.4 # Lowest PHPCS version on which PHP 7.4 is supported. @@ -105,7 +110,7 @@ install: composer require --no-update --no-suggest --no-scripts phpcompatibility/php-compatibility:"^8.0" fi - | - if [[ $TRAVIS_PHP_VERSION != "nightly" ]]; then + if [[ $TRAVIS_PHP_VERSION != "nightly" && $TRAVIS_PHP_VERSION != "8.0" ]]; then travis_wait composer install --no-interaction --no-progress --no-scripts --no-suggest --optimize-autoloader --prefer-dist --verbose else composer require --no-update --no-suggest --no-scripts phpcompatibility/php-compatibility