Skip to content

Commit c4aed9d

Browse files
cmonradbridge
authored andcommitted
Modified apt-get retry logic with Travis CI retry feature
1 parent 038ede3 commit c4aed9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ before_install:
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
3333
# Loop until update succeeds (timeouts can occur)
34-
- while [ -n "$(sudo apt-get update 2>&1 |grep Failed)" ]; do :; done
34+
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
3535

3636
after_success:
3737
- bash -c "$STATUS" success "Local $NAME testing has passed"

0 commit comments

Comments
 (0)