Skip to content

Commit

Permalink
Don't use travis-stock Rust support
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Aug 28, 2016
1 parent dc2c0dc commit 45e7af2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: rust
sudo: required
dist: trusty
services:
Expand All @@ -9,71 +8,58 @@ matrix:
# Linux builds use the `rust-slave-dist` image so we link them against a
# "super old glibc" to ensure that it runs on as many platforms as possible.
- os: linux
rust: nightly
env: TARGET=i686-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b
- os: linux
rust: nightly
env: TARGET=x86_64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-dist:2015-10-20b

# Cross builds happen in the `rust-slave-linux-cross` image to ensure that
# we use the right cross compilers for these targets. That image should
# bundle all the gcc cross compilers to enable us to build OpenSSL
- os: linux
rust: nightly
env: TARGET=arm-unknown-linux-gnueabi
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=arm-unknown-linux-gnueabihf
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=armv7-unknown-linux-gnueabihf
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=aarch64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=x86_64-unknown-freebsd
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=x86_64-unknown-netbsd
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc64le-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1

# On OSX we want to target 10.7 so we ensure that the appropriate
# environment variable is set to tell the linker what we want.
- os: osx
rust: nightly
env: TARGET=i686-apple-darwin
MACOSX_DEPLOYMENT_TARGET=10.7
- os: osx
rust: nightly
env: TARGET=x86_64-apple-darwin
MACOSX_DEPLOYMENT_TARGET=10.7

Expand All @@ -98,15 +84,15 @@ script:
docker run
--entrypoint bash
-u `id -u`:`id -g`
-v `rustc --print sysroot`:/travis-rust:ro
-v $HOME/rust:/travis-rust:ro
-v `pwd`:/buildslave:ro
-v `pwd`/target:/buildslave/target
-e TARGET=$TARGET
-e SKIP_TESTS=$SKIP_TESTS
-it $DOCKER
ci/run-docker.sh;
else
sh ci/run.sh;
PATH=$HOME/rust/bin:$PATH sh ci/run.sh;
fi
# Install kcov dependencies
# FIXME: busted!
Expand Down
5 changes: 5 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -ex

echo "toolchain versions\n------------------"

rustc -vV
cargo -vV

cargo build --release --target $TARGET

if [ -z "$SKIP_TESTS" ]; then
Expand Down

0 comments on commit 45e7af2

Please sign in to comment.