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.
This commit is contained in:
bors 2017-01-08 23:01:11 +00:00
commit 2ceb6e0ecd

View File

@ -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