Skip to content

Commit 5ddcb92

Browse files
committed
Add retries to a number of downloads
1 parent d49025c commit 5ddcb92

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ matrix:
113113
- env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
114114
- env: TARGET=i686-pc-windows-gnu
115115

116-
install: rustup target add $TARGET
116+
install: travis_retry rustup target add $TARGET
117117
script:
118118
- cargo generate-lockfile
119119
- ci/run-docker.sh $TARGET $FEATURES

ci/android-install-ndk.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
set -ex
1313

14-
curl -O \
14+
curl --retry 5 -O \
1515
https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
1616
unzip -q android-ndk-r15b-linux-x86_64.zip
1717

ci/android-install-sdk.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -ex
1919
# which apparently magically accepts the licenses.
2020

2121
mkdir sdk
22-
curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O
22+
curl --retry 5 https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O
2323
unzip -d sdk sdk-tools-linux-3859397.zip
2424

2525
case "$1" in

ci/android-sysimage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ main() {
2424
apt-get install --no-install-recommends e2tools
2525

2626
pushd "$td"
27-
curl -O "${URL}/${name}"
27+
curl --retry 5 -O "${URL}/${name}"
2828
unzip -q "${name}"
2929

3030
local system

0 commit comments

Comments
 (0)