about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-08 23:01:11 +0000
committerbors <bors@rust-lang.org>2017-01-08 23:01:11 +0000
commit2ceb6e0ecd3aae53a239cf5fba3c15fbe10d2851 (patch)
tree430d7f7867cc842e809726fd1fe9cfac6886ee76
parentbb7e7ef70ef61e6b701914c80f07be819587c91e (diff)
parent882426b404cf933d02c3e05b9d40065ecddd6b26 (diff)
Auto merge of #38904 - alexcrichton:travis-retry, r=japaric
travis: Wrap submodules updates in travis_retry

Let's try to squash some of those network issues with a `travis_retry`
tool to just retry the command a few times.
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 15b610833b0..2b5eaecb0b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -69,10 +69,10 @@ script:
       if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
           echo skipping, not a full build;
       elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
-          git submodule update --init &&
+          travis_retry git submodule update --init &&
           src/ci/run.sh;
       else
-          git submodule update --init &&
+          travis_retry git submodule update --init &&
           src/ci/docker/run.sh $IMAGE;
       fi