use cargo miri setup for CI

This commit is contained in:
Ralf Jung 2018-11-25 17:17:21 +01:00
parent 738133b379
commit bb47df94dd
2 changed files with 5 additions and 16 deletions

View File

@ -28,8 +28,6 @@ before_script:
- 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 || echo "Skipping xargo install"
script:
- set -e
@ -39,9 +37,9 @@ script:
cargo test --release --all-features &&
cargo install --all-features --force --path .
- |
# get ourselves a MIR-full libstd
xargo/build.sh &&
export MIRI_SYSROOT=~/.xargo/HOST
# starting here, use MIR-full libstd
cargo miri setup &&
export MIRI_SYSROOT=~/.miri/HOST
- |
# run all tests with full mir
cargo test --release --all-features

View File

@ -21,16 +21,6 @@ install:
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_TOOLCHAIN%
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
- rustc --version
# Customize installation.
- rustup component add rust-src
- cargo install xargo
# Prepare a libstd with MIR (cannot use bash script, obviously).
# The flags here should be kept in sync with `add_miri_default_args` in `src/lib.rs`.
- cd xargo
- set RUSTFLAGS=-Zalways-encode-mir -Zmir-emit-retag -Zmir-opt-level=0
- xargo build
- set RUSTFLAGS=
- cd ..
build: false
@ -39,7 +29,8 @@ test_script:
- set RUST_BACKTRACE=1
- cargo build --release --all-features --all-targets
- cargo test --release --all-features
- set MIRI_SYSROOT=%USERPROFILE%\.xargo\HOST
- cargo run --release --all-features --bin cargo-miri -- miri setup
- set MIRI_SYSROOT=%USERPROFILE%\.miri\HOST
- cargo test --release --all-features
notifications: