Skip to content

Commit 056ea56

Browse files
committed
Travis: remove redundant conditions
There are no builds with `PHPCS_VERSION` set to `n/a` at the moment, so we may as well remove the conditions.
1 parent bd5d0f0 commit 056ea56

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ before_install:
136136
# Remove the PHPCSDevCS dependency as it has different PHPCS requirements and would block installs.
137137
travis_retry composer remove --dev phpcsstandards/phpcsdevcs --no-update --no-scripts
138138
fi
139-
- |
140-
if [[ $PHPCS_VERSION != "n/a" ]]; then
141-
travis_retry composer require --no-update --no-scripts squizlabs/php_codesniffer:${PHPCS_VERSION}
142-
fi
139+
- travis_retry composer require --no-update --no-scripts squizlabs/php_codesniffer:${PHPCS_VERSION}
143140
- |
144141
if [[ "${TRAVIS_BUILD_STAGE_NAME^}" == "Sniff" ]]; then
145142
# The sniff stage doesn't run the unit tests, so no need for PHPUnit.
@@ -167,4 +164,4 @@ script:
167164
- if [[ "$LINT" == "1" ]]; then composer check-complete; fi
168165

169166
# Run the unit tests.
170-
- if [[ $PHPCS_VERSION != "n/a" ]]; then composer run-tests; fi
167+
- composer run-tests

0 commit comments

Comments
 (0)