]> git.lizzy.rs Git - rust.git/blob - .travis.yml
cargo cache was messing up xargo/miri install
[rust.git] / .travis.yml
1 language: rust
2 cache: cargo
3 rust:
4 - nightly
5 before_script:
6 - export PATH=$HOME/.local/bin:$PATH
7 - rustup target add i686-unknown-linux-gnu
8 - rustup target add i686-pc-windows-gnu
9 - rustup target add i686-pc-windows-msvc
10 - rustup component add rust-src
11 - cargo install xargo || echo "skipping xargo install"
12 - export RUST_SYSROOT=$HOME/rust
13 script:
14 - set -e
15 - |
16   # get ourselves a MIR-ful libstd
17   xargo/build.sh
18 - |
19   # Test plain miri
20   cargo build --release --all-features &&
21   cargo test --release --all-features --all &&
22   cargo install --all-features --force
23 - |
24   # Test cargo miri
25   cd cargo-miri-test &&
26   cargo miri &&
27   #cargo miri test &&
28   cd ..
29 - |
30   # and run all tests with full mir
31   MIRI_SYSROOT=~/.xargo/HOST cargo test --release
32 - |
33   # test that the rustc_tests binary compiles
34   cd rustc_tests &&
35   cargo build --release &&
36   cd ..
37 notifications:
38   email:
39     on_success: never
40 branches:
41   only:
42   - master
43 env:
44   global:
45   - RUST_TEST_NOCAPTURE=1
46   - TRAVIS_CARGO_NIGHTLY_FEATURE=""