Skip to content

Commit 5f527b0

Browse files
committed
Merge pull request #208 from alexcrichton/moar-nightlies
Use nightlies for iOS and rumprun
2 parents 91ef172 + c02a5c2 commit 5f527b0

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ matrix:
4545
rust: nightly
4646
- os: osx
4747
env: TARGET=i386-apple-ios
48-
rust: nightly-2016-02-12
48+
rust: nightly
4949
- os: osx
5050
env: TARGET=x86_64-apple-ios
51-
rust: nightly-2016-02-12
51+
rust: nightly
5252
- os: linux
5353
env: TARGET=x86_64-rumprun-netbsd DOCKER=alexcrichton/rust-libc-rumprun:2015-11-27
54-
rust: nightly-2015-09-27
54+
rust: nightly
5555
- os: linux
5656
env: TARGET=x86_64-unknown-freebsd QEMU=freebsd.qcow2
5757
rust: nightly

ci/run-travis.sh

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fi
1919

2020
MAIN_TARGETS=https://static.rust-lang.org/dist
2121
DATE=$(echo $TRAVIS_RUST_VERSION | sed s/nightly-//)
22-
EXTRA_TARGETS=https://people.mozilla.org/~acrichton/libc-test/$DATE
2322
if [ "$DATE" != "nightly" ]; then
2423
MAIN_TARGETS=$MAIN_TARGETS/$DATE
2524
TRAVIS_RUST_VERSION=nightly
@@ -108,30 +107,11 @@ mkdir -p .cargo
108107
cp ci/cargo-config .cargo/config
109108

110109
# 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.
113111
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
135115
fi
136116

137117
# If we're testing with a docker image, then run tests entirely within that

0 commit comments

Comments
 (0)