Merge pull request #6126 from cmonr/travis-timeout-fix

Modified 'apt-get update' to loop until successful
pull/6145/head
Cruz Monrreal 2018-02-20 11:34:49 -06:00 committed by GitHub
commit 6d374c61ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"