|
19 | 19 |
|
20 | 20 | MAIN_TARGETS=https://static.rust-lang.org/dist |
21 | 21 | DATE=$(echo $TRAVIS_RUST_VERSION | sed s/nightly-//) |
22 | | -EXTRA_TARGETS=https://people.mozilla.org/~acrichton/libc-test/$DATE |
23 | 22 | if [ "$DATE" != "nightly" ]; then |
24 | 23 | MAIN_TARGETS=$MAIN_TARGETS/$DATE |
25 | 24 | TRAVIS_RUST_VERSION=nightly |
@@ -108,30 +107,11 @@ mkdir -p .cargo |
108 | 107 | cp ci/cargo-config .cargo/config |
109 | 108 |
|
110 | 109 | # Next up we need to install the standard library for the version of Rust that |
111 | | -# we're testing. Get fancy targets from the EXTRA_TARGETS URL and otherwise get |
112 | | -# all others from the official distribution. |
| 110 | +# we're testing. |
113 | 111 | if [ "$TRAVIS" = "true" ]; then |
114 | | - case "$TARGET" in |
115 | | - *-rumprun-*) |
116 | | - curl -s $EXTRA_TARGETS/$TARGET.tar.gz | \ |
117 | | - tar xzf - -C `rustc --print sysroot`/lib/rustlib |
118 | | - ;; |
119 | | - |
120 | | - *) |
121 | | - # Download the rustlib folder from the relevant portion of main |
122 | | - # distribution's tarballs. |
123 | | - dir=rust-std-$TARGET |
124 | | - pkg=rust-std |
125 | | - if [ "$TRAVIS_RUST_VERSION" = "1.0.0" ]; then |
126 | | - pkg=rust |
127 | | - dir=rustc |
128 | | - fi |
129 | | - curl -s $MAIN_TARGETS/$pkg-$TRAVIS_RUST_VERSION-$TARGET.tar.gz | \ |
130 | | - tar xzf - -C $HOME/rust/lib/rustlib --strip-components=4 \ |
131 | | - $pkg-$TRAVIS_RUST_VERSION-$TARGET/$dir/lib/rustlib/$TARGET |
132 | | - ;; |
133 | | - |
134 | | - esac |
| 112 | + curl -s $MAIN_TARGETS/rust-std-$TRAVIS_RUST_VERSION-$TARGET.tar.gz | \ |
| 113 | + tar xzf - -C $HOME/rust/lib/rustlib --strip-components=4 \ |
| 114 | + rust-std-$TRAVIS_RUST_VERSION-$TARGET/rust-std-$TARGET/lib/rustlib/$TARGET |
135 | 115 | fi |
136 | 116 |
|
137 | 117 | # If we're testing with a docker image, then run tests entirely within that |
|
0 commit comments