Skip to content

Commit

Permalink
Install appropriate travis toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Apr 2, 2018
1 parent ea666f8 commit 1652cd8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ matrix:
- RUST_BACKTRACE=1
- rust: nightly-2018-01-02
env:
- TEST=i686
- TEST=cross-build
- TARGET=i686-unknown-linux-gnu

install:
- curl https://sh.rustup.rs -sSf |
sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
- if [ -n "$TARGET" ]; then
rustup target add $TARGET;
fi
- source ~/.cargo/env

script:
- bash -c 'case "$TEST" in
Expand All @@ -41,8 +50,8 @@ script:
crash)
cargo test test_crash_recovery --release --features="check_snapshot_integrity" -- --nocapture
;;
i686)
cargo build --target i686-unknown-linux-gnu
cross-build)
cargo build --target $TARGET
;;
*)
cargo check;
Expand Down

0 comments on commit 1652cd8

Please sign in to comment.