diff --git a/.travis.yml b/.travis.yml index 505795d33e5..4f9148ede34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,10 +71,10 @@ script: if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then echo skipping, not a full build; elif [ "$TRAVIS_OS_NAME" = "osx" ]; then - travis_retry git submodule update --init && + travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' && src/ci/run.sh; else - travis_retry git submodule update --init && + travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' && src/ci/docker/run.sh $IMAGE; fi