Modified 'apt-get update' to loop until successful

pull/6126/head
Cruz Monrreal II 2018-02-16 15:44:36 -06:00
parent bc4dea2b1c
commit fa6c689b7f
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ before_install:
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
# Setup ppa to make sure arm-none-eabi-gcc is correct version
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo apt-get update -qq
# Loop until update succeeds (timeouts can occur)
- while [ -n "$(sudo apt-get update 2>&1 |grep Failed)"; do :; done
after_success:
- bash -c "$STATUS" success "Local $NAME testing has passed"