Skip to content

Commit

Permalink
Make Travis builds more resilient to network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Sep 7, 2018
1 parent ffe3497 commit 04781c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ cache:
- stripe-mock

before_install:
# Install various build dependencies. We use `travis_retry` because Composer
# will occasionally fail intermittently.
- travis_retry composer install

# Unpack and start stripe-mock so that the test suite can talk to it
- |
if [ ! -d "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
file_put_contents('composer.json', json_encode($composer, JSON_PRETTY_PRINT));
}

passthru('composer install', $returnStatus);
passthru('composer update', $returnStatus);
if ($returnStatus !== 0) {
exit(1);
}
Expand Down

0 comments on commit 04781c4

Please sign in to comment.