Skip to content

Commit

Permalink
Travis: remove redundant condition
Browse files Browse the repository at this point in the history
As the tests for this repo do not use the PHPCS native test classes, there is no need for toggling the PHPUnit version.
  • Loading branch information
jrfnl committed Jan 27, 2020
1 parent 0d57749 commit d8d1d3d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ install:
if [[ $PHPCS_VERSION == "n/a" ]]; then
# Don't install PHPUnit when it's not needed.
composer remove --dev phpunit/phpunit --no-update --no-scripts
elif [[ "$PHPCS_VERSION" < "3.1.0" ]]; then
# PHPCS < 3.1.0 is not compatible with PHPUnit 6.x.
composer require --dev phpunit/phpunit:"^4.0||^5.0" --no-update --no-scripts
elif [[ "$PHPCS_VERSION" < "3.2.3" ]]; then
# PHPCS < 3.2.3 is not compatible with PHPUnit 7.x.
composer require --dev phpunit/phpunit:"^4.0||^5.0||^6.0" --no-update --no-scripts
fi
# --prefer-dist will allow for optimal use of the travis caching ability.
Expand Down

0 comments on commit d8d1d3d

Please sign in to comment.