Modified apt-get retry logic with Travis CI retry feature

pull/6461/head
Cruz Monrreal II 2018-03-22 15:08:21 -05:00 committed by adbridge
parent 038ede386a
commit c4aed9d340
1 changed files with 1 additions and 1 deletions

View File

@ -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"