Skip to content

Commit 4dbd3a9

Browse files
committed
Travis: retry composer install on failure
The builds are failing a little too often for my taste on the below error. ``` [Composer\Downloader\TransportException] Peer fingerprint did not match ``` I'm prefixing the `composer install` commands now with `travis_retry` in an attempt to get round this problem. Ref: * https://docs.travis-ci.com/user/common-build-problems/#timeouts-installing-dependencies
1 parent 85f3521 commit 4dbd3a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ before_install:
5353
# PHPUnit 8.x is not (yet) supported, so prevent issues with Travis images using it.
5454
- |
5555
if [[ $TRAVIS_PHP_VERSION != "nightly" ]]; then
56-
composer install
56+
travis_retry composer install
5757
elif [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
5858
// Allow installing "incompatible" PHPUnit version on PHP 8/nightly.
59-
composer install --ignore-platform-reqs
59+
travis_retry composer install --ignore-platform-reqs
6060
fi
6161
6262
before_script:

0 commit comments

Comments
 (0)