Skip to content

Commit 0a0cc58

Browse files
authored
Merge pull request #6434 from cmonr/correct-apt-get-retrying
Modified apt-get retry logic with Travis CI retry feature
2 parents cffa1c0 + fa8020e commit 0a0cc58

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
@@ -40,7 +40,7 @@ before_install:
4040
# Setup ppa to make sure arm-none-eabi-gcc is correct version
4141
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
4242
# Loop until update succeeds (timeouts can occur)
43-
- while [ -n "$(sudo apt-get update 2>&1 |grep Failed)" ]; do :; done
43+
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
4444

4545
after_success:
4646
- bash -c "$STATUS" success "Local $NAME testing has passed"

0 commit comments

Comments
 (0)