Skip to content

Commit 6d374c6

Browse files
authored
Merge pull request #6126 from cmonr/travis-timeout-fix
Modified 'apt-get update' to loop until successful
2 parents 45d04bc + 4c51f3a commit 6d374c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ before_install:
3030
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
3131
# Setup ppa to make sure arm-none-eabi-gcc is correct version
3232
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
33-
- sudo apt-get update -qq
33+
# Loop until update succeeds (timeouts can occur)
34+
- while [ -n "$(sudo apt-get update 2>&1 |grep Failed)" ]; do :; done
3435

3536
after_success:
3637
- bash -c "$STATUS" success "Local $NAME testing has passed"

0 commit comments

Comments
 (0)