Travis use 7.1 - 8.1 php version

This commit is contained in:
Laurent Destailleur 2022-09-21 01:35:32 +02:00
parent 6fb9a4713c
commit e835b73e92

View File

@ -64,13 +64,13 @@ jobs:
#allow_failures:
#- php: nightly
include:
- stage: PHP 7.0-7.4
- stage: PHP 7.0-8.1
if: type = push
php: '7.1'
env: DB=postgresql
- stage: PHP 7.0-7.4
- stage: PHP 7.0-8.1
if: type = pull_request OR type = push
php: '7.4.22'
php: '8.1'
env: DB=mysql
- stage: PHP Dev
if: type = push AND branch = develop
@ -122,7 +122,7 @@ install:
squizlabs/php_codesniffer ^3
fi
# phpunit 9 is required for php 8
if [ "$TRAVIS_PHP_VERSION" = 'nightly' ]; then
if [ "$TRAVIS_PHP_VERSION" = '8.0' ] || [ "$TRAVIS_PHP_VERSION" = '8.1' ] || [ "$TRAVIS_PHP_VERSION" = 'nightly' ]; then
composer -n require --ignore-platform-reqs phpunit/phpunit ^7 \
php-parallel-lint/php-parallel-lint ^1.2 \
php-parallel-lint/php-console-highlighter ^0 \