From 882426b404cf933d02c3e05b9d40065ecddd6b26 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 6 Jan 2017 21:28:57 -0800 Subject: [PATCH] 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. --- .travis.yml | 4 ++-- 1 file 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