Skip to content

Commit 3ca5b0b

Browse files
committed
Don't use travis-stock Rust support
1 parent dc2c0dc commit 3ca5b0b

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.travis.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
language: rust
21
sudo: required
32
dist: trusty
43
services:
@@ -9,71 +8,58 @@ matrix:
98
# Linux builds use the `rust-slave-dist` image so we link them against a
109
# "super old glibc" to ensure that it runs on as many platforms as possible.
1110
- os: linux
12-
rust: nightly
1311
env: TARGET=i686-unknown-linux-gnu
1412
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
1513
- os: linux
16-
rust: nightly
1714
env: TARGET=x86_64-unknown-linux-gnu
1815
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
1916

2017
# Cross builds happen in the `rust-slave-linux-cross` image to ensure that
2118
# we use the right cross compilers for these targets. That image should
2219
# bundle all the gcc cross compilers to enable us to build OpenSSL
2320
- os: linux
24-
rust: nightly
2521
env: TARGET=arm-unknown-linux-gnueabi
2622
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
2723
SKIP_TESTS=1
2824
- os: linux
29-
rust: nightly
3025
env: TARGET=arm-unknown-linux-gnueabihf
3126
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
3227
SKIP_TESTS=1
3328
- os: linux
34-
rust: nightly
3529
env: TARGET=armv7-unknown-linux-gnueabihf
3630
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
3731
SKIP_TESTS=1
3832
- os: linux
39-
rust: nightly
4033
env: TARGET=aarch64-unknown-linux-gnu
4134
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
4235
SKIP_TESTS=1
4336
- os: linux
44-
rust: nightly
4537
env: TARGET=x86_64-unknown-freebsd
4638
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
4739
SKIP_TESTS=1
4840
- os: linux
49-
rust: nightly
5041
env: TARGET=x86_64-unknown-netbsd
5142
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
5243
SKIP_TESTS=1
5344
- os: linux
54-
rust: nightly
5545
env: TARGET=powerpc-unknown-linux-gnu
5646
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
5747
SKIP_TESTS=1
5848
- os: linux
59-
rust: nightly
6049
env: TARGET=powerpc64-unknown-linux-gnu
6150
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
6251
SKIP_TESTS=1
6352
- os: linux
64-
rust: nightly
6553
env: TARGET=powerpc64le-unknown-linux-gnu
6654
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
6755
SKIP_TESTS=1
6856

6957
# On OSX we want to target 10.7 so we ensure that the appropriate
7058
# environment variable is set to tell the linker what we want.
7159
- os: osx
72-
rust: nightly
7360
env: TARGET=i686-apple-darwin
7461
MACOSX_DEPLOYMENT_TARGET=10.7
7562
- os: osx
76-
rust: nightly
7763
env: TARGET=x86_64-apple-darwin
7864
MACOSX_DEPLOYMENT_TARGET=10.7
7965

@@ -98,15 +84,15 @@ script:
9884
docker run
9985
--entrypoint bash
10086
-u `id -u`:`id -g`
101-
-v `rustc --print sysroot`:/travis-rust:ro
87+
-v $HOME/rust:/travis-rust:ro
10288
-v `pwd`:/buildslave:ro
10389
-v `pwd`/target:/buildslave/target
10490
-e TARGET=$TARGET
10591
-e SKIP_TESTS=$SKIP_TESTS
10692
-it $DOCKER
10793
ci/run-docker.sh;
10894
else
109-
sh ci/run.sh;
95+
PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
11096
fi
11197
# Install kcov dependencies
11298
# FIXME: busted!

ci/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -ex
44

5+
echo "toolchain versions"
6+
echo "------------------"
7+
8+
rustc -vV
9+
cargo -vV
10+
11+
echo
12+
513
cargo build --release --target $TARGET
614

715
if [ -z "$SKIP_TESTS" ]; then

0 commit comments

Comments
 (0)