rust/.travis.yml
Oliver Schneider 7e585ef147 Speed up travis by using release mode
before we built in debug mode for testing,
but then installed miri, which builds in release mode.

So we built in release mode anyway but tested slowly in debug mode
2017-08-02 17:57:55 +02:00

42 lines
862 B
YAML

language: rust
rust:
- nightly
before_script:
- 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
- rustup component add rust-src
- cargo install xargo
- export RUST_SYSROOT=$HOME/rust
script:
- |
# get ourselves a MIR-ful libstd
xargo/build.sh
- |
# Test plain miri
cargo build --release &&
cargo test --release &&
cargo install
- |
# Test cargo miri
cd cargo-miri-test &&
cargo miri &&
cargo miri test &&
cd ..
- |
# and run all tests with full mir
MIRI_SYSROOT=~/.xargo/HOST cargo test --release
- |
# test that the rustc_tests binary compiles
cd rustc_tests &&
cargo build --release &&
cd ..
notifications:
email:
on_success: never
env:
global:
- RUST_TEST_NOCAPTURE=1
- TRAVIS_CARGO_NIGHTLY_FEATURE=""