@@ -16,16 +16,18 @@ if [ "$TARGET" = "" ]; then
1616fi
1717
1818MAIN_TARGETS=https://static.rust-lang.org/dist
19- EXTRA_TARGETS=https://people.mozilla.org/~acrichton/libc-test/2015-09-08
19+ DATE=$( echo $TRAVIS_RUST_VERSION | sed s/nightly-//)
20+ EXTRA_TARGETS=https://people.mozilla.org/~acrichton/libc-test/$DATE
2021
2122install () {
2223 sudo apt-get update
2324 sudo apt-get install -y $@
2425}
2526
2627case " $TARGET " in
27- * -apple-ios)
28- curl -s $EXTRA_TARGETS /$TARGET .tar.gz | tar xzf - -C $HOME /rust/lib/rustlib
28+ * -apple-ios | * -rumprun-* )
29+ curl -s $EXTRA_TARGETS /$TARGET .tar.gz | \
30+ tar xzf - -C ` rustc --print sysroot` /lib/rustlib
2931 ;;
3032
3133 * )
@@ -44,27 +46,27 @@ case "$TARGET" in
4446
4547esac
4648
47- case " $TARGET " in
48- # Pull a pre-built docker image for testing android, then run tests entirely
49- # within that image. Note that this is using the same rustc installation that
50- # travis has (sharing it via `-v`) and otherwise the tests run entirely within
51- # the container.
52- arm-linux-androideabi)
53- script="
54- cp -r /checkout/* .
55- mkdir .cargo
56- cp ci/cargo-config .cargo/config
57- exec sh ci/run.sh $TARGET
58- "
59- exec docker run \
60- --entrypoint bash \
61- -v $HOME /rust:/usr/local:ro \
62- -v ` pwd` :/checkout:ro \
63- -e LD_LIBRARY_PATH=/usr/local/lib \
64- -it alexcrichton/rust-slave-android:2015-10-21 \
65- -c " $script "
66- ;;
49+ # Pull a pre-built docker image for testing android, then run tests entirely
50+ # within that image. Note that this is using the same rustc installation that
51+ # travis has (sharing it via `-v`) and otherwise the tests run entirely within
52+ # the container.
53+ if [ " $DOCKER " != " " ]; then
54+ script="
55+ cp -r /checkout/* .
56+ mkdir .cargo
57+ cp ci/cargo-config .cargo/config
58+ exec sh ci/run.sh $TARGET
59+ "
60+ exec docker run \
61+ --entrypoint bash \
62+ -v ` rustc --print sysroot` :/usr/local:ro \
63+ -v ` pwd` :/checkout:ro \
64+ -e LD_LIBRARY_PATH=/usr/local/lib \
65+ -it $DOCKER \
66+ -c " $script "
67+ fi
6768
69+ case " $TARGET " in
6870 x86_64-unknown-linux-musl)
6971 install musl-tools
7072 export CC=musl-gcc
0 commit comments