Skip to content

Commit 2b4ba59

Browse files
authored
Merge pull request #1950 from WordPress/feature/travis-use-retry
Travis: retry composer install on failure
2 parents 1d0d100 + dcd3525 commit 2b4ba59

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
@@ -171,15 +171,15 @@ install:
171171
else
172172
composer config preferred-install.squizlabs/php_codesniffer auto
173173
fi
174-
- composer require squizlabs/php_codesniffer:"${PHPCS_BRANCH}" --no-update --no-suggest --no-scripts
174+
- travis_retry composer require squizlabs/php_codesniffer:"${PHPCS_BRANCH}" --no-update --no-suggest --no-scripts
175175
- |
176176
if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
177177
# PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform
178178
# requirements to get PHPUnit 7.x to install on nightly.
179-
composer install --ignore-platform-reqs --no-suggest
179+
travis_retry composer install --ignore-platform-reqs --no-suggest
180180
else
181181
# Do a normal dev install in all other cases.
182-
composer install --no-suggest
182+
travis_retry composer install --no-suggest
183183
fi
184184
185185
script:

0 commit comments

Comments
 (0)