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