]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Rustup to rustc 1.27.0-nightly (ff2ac35db 2018-05-12)
[rust.git] / .travis.yml
1 language: rust
2 cache: cargo
3
4 os:
5 - osx
6 - linux
7
8 rust:
9 - nightly
10 before_script:
11 # mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
12 - curl -sSL https://rvm.io/mpapis.asc | gpg --import -
13 - rvm get stable
14 # actual travis code
15 - export PATH=$HOME/.local/bin:$PATH
16 - rustup target add i686-unknown-linux-gnu
17 - rustup target add i686-pc-windows-gnu
18 - rustup target add i686-pc-windows-msvc
19 - rustup component add rust-src
20 - cargo install xargo || echo "skipping xargo install"
21 - export RUST_SYSROOT=$HOME/rust
22 script:
23 - set -e
24 - |
25   # get ourselves a MIR-ful libstd
26   xargo/build.sh
27 - |
28   # Test plain miri
29   cargo build --release --all-features &&
30   cargo test --release --all-features --all &&
31   cargo install --all-features --force
32 - |
33   # Test cargo miri
34   cd cargo-miri-test &&
35   cargo miri &&
36   #cargo miri test &&
37   cd ..
38 - |
39   # and run all tests with full mir
40   MIRI_SYSROOT=~/.xargo/HOST cargo test --release
41 - |
42   # test that the rustc_tests binary compiles
43   cd rustc_tests &&
44   cargo build --release &&
45   cd ..
46 notifications:
47   email:
48     on_success: never
49 branches:
50   only:
51   - master
52 env:
53   global:
54   - RUST_TEST_NOCAPTURE=1
55   - TRAVIS_CARGO_NIGHTLY_FEATURE=""