From fa8020ee6c1061605bc52adf52a71b8baf15f56c Mon Sep 17 00:00:00 2001 From: Cruz Monrreal II Date: Thu, 22 Mar 2018 15:08:21 -0500 Subject: [PATCH] Modified apt-get retry logic with Travis CI retry feature --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8259c65d7a5..a2d58e3d5ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ before_install: # Setup ppa to make sure arm-none-eabi-gcc is correct version - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa # Loop until update succeeds (timeouts can occur) - - while [ -n "$(sudo apt-get update 2>&1 |grep Failed)" ]; do :; done + - travis_retry $(! sudo apt-get update 2>&1 |grep Failed) after_success: - bash -c "$STATUS" success "Local $NAME testing has passed"