File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ matrix:
49
49
stage : tools-and-build-and-tier1
50
50
rust : nightly
51
51
install :
52
- - rustup component add rust-src
53
- - cargo install xargo
52
+ - travis_retry rustup component add rust-src
53
+ - travis_retry cargo install xargo
54
54
- name : " Build Stable Rust"
55
55
script : sh ci/build.sh
56
56
stage : tools-and-build-and-tier1
Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ test_target() {
26
26
27
27
# If there is a std component, fetch it:
28
28
if [ " ${NO_STD} " != " 1" ]; then
29
- rustup target add " ${TARGET} " --toolchain " ${RUST} "
29
+ # FIXME: rustup often fails to download some artifacts due to network
30
+ # issues, so we retry this N times.
31
+ N=5
32
+ n=0
33
+ until [ $n -ge $N ]
34
+ do
35
+ rustup target add " ${TARGET} " --toolchain " ${RUST} " && break
36
+ n=$(( n+ 1 ))
37
+ sleep 1
38
+ done
30
39
fi
31
40
32
41
# Test that libc builds without any default features (no libstd)
@@ -110,13 +119,6 @@ x86_64-pc-windows-gnu \
110
119
x86_64-unknown-linux-gnux32 \
111
120
x86_64-unknown-redox \
112
121
"
113
- # FIXME: these do not have a rust-std component available
114
- # aarch64-unknown-cloudabi armv7-unknown-cloudabi-eabihf
115
- # i686-unknown-cloudabi powerpc-unknown-linux-gnuspe
116
- # sparc-unknown-linux-gnu mips-unknown-linux-uclib
117
- # i686-unknown-haiku mipsel-unknown-unknown-linux-uclib
118
- # sparc64-unknown-netbsd x86_64-unknown-bitrig x86_64-unknown-haiku
119
- # x86_64-unknown-openbsd i686-unknown-netbsd
120
122
121
123
RUST_OSX_TARGETS=" \
122
124
aarch64-apple-ios \
You can’t perform that action at this time.
0 commit comments