1111- osx
1212
1313before_script :
14- # mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
15- - rvm get stable
14+ # macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
15+ - if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
1616# Compute the rust version we use. We do not use "language: rust" to have more control here.
1717- |
1818 if [ "$TRAVIS_EVENT_TYPE" = cron ]; then
@@ -36,35 +36,18 @@ script:
3636- |
3737 # Test and install plain miri
3838 cargo build --release --all-features &&
39- # cargo test --release --all-features &&
39+ cargo test --release --all-features &&
4040 cargo install --all-features --force --path .
4141 - |
4242 # get ourselves a MIR-full libstd
4343 xargo/build.sh &&
4444 export MIRI_SYSROOT=~/.xargo/HOST
45- # - |
46- # # run all tests with full mir
47- # cargo test --release --all-features
45+ - |
46+ # run all tests with full mir
47+ cargo test --release --all-features
4848 - |
4949 # Test cargo integration
50- cd cargo-miri-test &&
51- # Test `cargo miri`
52- # We ignore the exit code because we want to see the output even on failure, and
53- # I found no way to preserve the exit code so that we can test for it later.
54- # Variables set in this subshell in the parenthesis are not available
55- # on the outside.
56- # We assume that if this fails, it'll also print something about the failure on
57- # stdout/stderr and we'll catch that.
58- # FIXME: Disabling validation, still investigating whether there is UB here
59- (cargo miri -q >stdout.real 2>stderr.real -- -Zmiri-disable-validation || true) &&
60- # Print file names and contents (`cat` would just print contents)
61- tail -n +0 stdout.real stderr.real &&
62- # Verify output
63- diff -u stdout.ref stdout.real &&
64- diff -u stderr.ref stderr.real &&
65- # test `cargo miri test`
66- cargo miri test &&
67- cd ..
50+ (cd cargo-miri-test && ./run-test.py)
6851
6952notifications :
7053 email :
0 commit comments