2016-04-14 00:10:31 +02:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
before_script:
|
2017-03-23 15:52:11 +01:00
|
|
|
- export PATH=$HOME/.local/bin:$PATH
|
|
|
|
- rustup target add i686-unknown-linux-gnu
|
|
|
|
- rustup target add i686-pc-windows-gnu
|
|
|
|
- rustup target add i686-pc-windows-msvc
|
2017-05-30 14:09:40 -07:00
|
|
|
- rustup component add rust-src
|
|
|
|
- cargo install xargo
|
|
|
|
- export RUST_SYSROOT=$HOME/rust
|
2016-04-14 00:10:31 +02:00
|
|
|
script:
|
2017-08-18 11:42:00 +02:00
|
|
|
- set -e
|
2017-06-21 08:55:32 +02:00
|
|
|
- |
|
|
|
|
# get ourselves a MIR-ful libstd
|
2017-07-11 10:25:05 -07:00
|
|
|
xargo/build.sh
|
2016-06-16 10:46:43 +02:00
|
|
|
- |
|
2017-05-30 14:09:40 -07:00
|
|
|
# Test plain miri
|
2017-08-09 16:12:27 +02:00
|
|
|
cargo build --release --features "cargo_miri" &&
|
2017-08-07 15:39:27 -07:00
|
|
|
cargo test --release --all &&
|
2017-08-09 16:12:27 +02:00
|
|
|
cargo install --features "cargo_miri"
|
2017-05-30 14:09:40 -07:00
|
|
|
- |
|
|
|
|
# Test cargo miri
|
2017-01-24 17:55:42 +01:00
|
|
|
cd cargo-miri-test &&
|
2017-01-28 16:14:32 +01:00
|
|
|
cargo miri &&
|
|
|
|
cargo miri test &&
|
2017-01-24 17:55:42 +01:00
|
|
|
cd ..
|
2017-05-30 14:09:40 -07:00
|
|
|
- |
|
2017-06-21 08:55:32 +02:00
|
|
|
# and run all tests with full mir
|
2017-08-02 17:57:55 +02:00
|
|
|
MIRI_SYSROOT=~/.xargo/HOST cargo test --release
|
2017-08-01 16:44:49 +02:00
|
|
|
- |
|
|
|
|
# test that the rustc_tests binary compiles
|
|
|
|
cd rustc_tests &&
|
2017-08-02 17:57:55 +02:00
|
|
|
cargo build --release &&
|
2017-08-01 16:44:49 +02:00
|
|
|
cd ..
|
2016-04-14 00:10:31 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
2016-04-15 16:50:36 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- RUST_TEST_NOCAPTURE=1
|
|
|
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|