Skip to content

Commit

Permalink
Travis: don't install PHPUnit when not needed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed May 28, 2018
1 parent e06c8cb commit c631962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c631962

Please sign in to comment.