From c6319628b39be1bb361bccab24b6f7c88323bca1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 28 May 2018 17:17:09 +0200 Subject: [PATCH] Travis: don't install PHPUnit when not needed Have the line to `remove phpunit` underneath the `install` command, makes that it has no effect at the time of the initial install, moving it up fixes this. Also removed the `selfupdate` command in line with the Travis script in other plugins/modules. --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb450d3..7e56b4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,9 +35,8 @@ before_install: install: - if [[ $TRAVIS_PHP_VERSION == "5.2" || $TRAVIS_PHP_VERSION == "5.3" ]]; then phpenv local 5.3.29; fi -- composer selfupdate --no-interaction -- composer install --prefer-dist --no-interaction - if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then composer remove --dev phpunit/phpunit; fi +- composer install --prefer-dist --no-interaction - if [[ $TRAVIS_PHP_VERSION == "5.2" || $TRAVIS_PHP_VERSION == "5.3" ]]; then phpenv local --unset; fi script: