Skip to content

Commit dd80cc4

Browse files
authored
Merge pull request #35 from PHPCSStandards/feature/travis-fix-build
Travis: fix the build
2 parents fd7ec4c + dc18ed4 commit dd80cc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ before_install:
108108
# On stable PHPCS versions, allow for PHP deprecation notices.
109109
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
110110
- |
111-
if [[ "$TRAVIS_BUILD_STAGE_NAME" != "Sniff" && "$PHPCS_VERSION" != "dev-master" && "$PHPCS_VERSION" != "n/a" ]]; then
111+
if [[ "${TRAVIS_BUILD_STAGE_NAME^}" != "Sniff" && "$PHPCS_VERSION" != "dev-master" && "$PHPCS_VERSION" != "n/a" ]]; then
112112
echo 'error_reporting = E_ALL & ~E_DEPRECATED' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
113113
fi
114114
115115
- export XMLLINT_INDENT=" "
116116

117117
# Set up test environment using Composer.
118118
- |
119-
if [[ "$TRAVIS_BUILD_STAGE_NAME" != "Sniff" ]]; then
119+
if [[ "${TRAVIS_BUILD_STAGE_NAME^}" != "Sniff" ]]; then
120120
# Remove the PHPCSDevCS dependency as it has different PHPCS requirements and would block installs.
121121
composer remove --dev phpcsstandards/phpcsdevcs --no-update --no-scripts
122122
fi
@@ -125,7 +125,7 @@ before_install:
125125
composer require --no-update --no-scripts squizlabs/php_codesniffer:${PHPCS_VERSION}
126126
fi
127127
- |
128-
if [[ "$TRAVIS_BUILD_STAGE_NAME" == "Sniff" || $PHPCS_VERSION == "n/a" ]]; then
128+
if [[ "${TRAVIS_BUILD_STAGE_NAME^}" == "Sniff" || $PHPCS_VERSION == "n/a" ]]; then
129129
# The sniff stage doesn't run the unit tests, so no need for PHPUnit.
130130
composer remove --dev phpunit/phpunit --no-update --no-scripts
131131
elif [[ "$PHPCS_VERSION" < "3.1.0" ]]; then

0 commit comments

Comments
 (0)