From 9268196d5addfdb7ac1132c194949e8c1899a142 Mon Sep 17 00:00:00 2001 From: Walther Lalk <83255+dakota@users.noreply.github.com> Date: Thu, 7 Mar 2019 10:59:38 +0200 Subject: [PATCH] Add a prefer-lowest test --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ee9e3ae0..a5a51405 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ php: env: global: - DEFAULT=1 + - LOWEST=0 matrix: fast_finish: true @@ -19,11 +20,15 @@ matrix: - php: 7.0 env: PHPSTAN=1 DEFAULT=0 + + - php: 7.2 + env: DEFAULT=1 LOWEST=1 before_script: - if [[ $TRAVIS_PHP_VERSION != 7.0 ]]; then phpenv config-rm xdebug.ini; fi - - composer install --prefer-dist --no-interaction + - if [[ $LOWEST = 0 ]]; then composer install --prefer-dist --no-interaction; fi + - if [[ $LOWEST = 1 ]]; then composer update --prefer-lowest --prefer-dist --no-interaction; fi - if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:dev-master; fi - if [[ $PHPSTAN = 1 ]]; then composer require phpstan/phpstan:^0.9; fi