example of failure: https://travis-ci.org/qemu/qemu/jobs/243232857
$ sudo apt-get update -qq W: Failed to fetch http://llvm.org/apt/trusty/dists/llvm-toolchain-trusty-3.9/Release.gpg Connection failed E: Some index files failed to download. They have been ignored, or old ones used instead. The command "sudo apt-get update -qq" failed and exited with 100 during . Your build has been stopped. Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> Reviewed-by: Alex Bennée <alex.ben...@linaro.org> --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27a2d9cfb3..f78300ee99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -121,10 +121,10 @@ matrix: - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9 - CONFIG="--disable-linux-user --cc=clang-3.9 --cxx=clang++-3.9" before_install: - - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - - - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main' - - sudo apt-get update -qq - - sudo apt-get install -qq -y clang-3.9 + - travis_retry wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - + - travis_retry sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main' + - travis_retry sudo apt-get update -qq + - travis_retry sudo apt-get install -qq -y clang-3.9 - sudo apt-get build-dep -qq qemu - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ - git submodule update --init --recursive @@ -140,10 +140,10 @@ matrix: - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9 - CONFIG="--disable-system --cc=clang-3.9 --cxx=clang++-3.9" before_install: - - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - - - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main' - - sudo apt-get update -qq - - sudo apt-get install -qq -y clang-3.9 + - travis_retry wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - + - travis_retry sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main' + - travis_retry sudo apt-get update -qq + - travis_retry sudo apt-get install -qq -y clang-3.9 - sudo apt-get build-dep -qq qemu - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ - git submodule update --init --recursive -- 2.11.0