From fbba17587402793760e391d2254611838f508f4f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 7 Feb 2020 22:49:17 +0100 Subject: [PATCH] Improve build some more --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e81ff6523..3aede8a71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,7 @@ matrix: env: - deps=high - PHPSTAN=1 + - SYMFONY_PHPUNIT_VERSION=7.5 - php: nightly fast_finish: true allow_failures: @@ -50,7 +51,7 @@ install: # flags to pass to install - flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress" # update deps to latest in case of high deps build - - if [ "$deps" == "high" ]; then composer config platform.php 7.2.4; composer update $flags; fi + - if [ "$deps" == "high" ]; then composer config platform.php 7.4.0; composer update $flags; fi # install dependencies using system provided composer binary - composer install $flags # install dependencies using composer from source @@ -62,11 +63,12 @@ before_script: - git config --global user.email travis@example.com script: - - ./vendor/bin/simple-phpunit - # Run PHPStan - if [[ $PHPSTAN == "1" ]]; then - bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^6.5 && + bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --no-update && + bin/composer update phpstan/* phpunit/* sebastian/* --with-dependencies && vendor/bin/phpstan analyse --configuration=phpstan/config.neon; + else + vendor/bin/simple-phpunit; fi before_deploy: