diff --git a/.travis.yml b/.travis.yml index b4e2f5c56ee..ccb019f807d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,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"