File tree 2 files changed +19
-15
lines changed
2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -24,37 +24,38 @@ before_script:
24
24
script :
25
25
- set -e
26
26
- |
27
- # get ourselves a MIR-ful libstd
28
- xargo/build.sh
29
- - |
30
- # Test plain miri
27
+ # Test and install plain miri
31
28
cargo build --release --all-features &&
32
29
RUST_BACKTRACE=1 cargo test --release --all-features --all &&
33
30
cargo install --all-features --force
31
+ - |
32
+ # test that the rustc_tests binary compiles
33
+ cd rustc_tests &&
34
+ cargo build --release &&
35
+ cd ..
36
+ - |
37
+ # get ourselves a MIR-full libstd
38
+ xargo/build.sh &&
39
+ export MIRI_SYSROOT=~/.xargo/HOST
34
40
- |
35
41
# Test `cargo miri`
36
42
cd cargo-miri-test &&
37
43
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
38
- MIRI_SYSROOT=~/.xargo/HOST cargo miri -q -- -Zmiri-start-fn
44
+ cargo miri -q -- -Zmiri-start-fn
39
45
else
40
- MIRI_SYSROOT=~/.xargo/HOST cargo miri -q -- -Zmiri-start-fn >stdout.real 2>stderr.real &&
46
+ cargo miri -q -- -Zmiri-start-fn >stdout.real 2>stderr.real &&
41
47
cat stdout.real stderr.real &&
42
48
# Test `cargo miri` output. Not on mac because output redirecting doesn't
43
49
# work. There is no error. It just stops CI.
44
50
diff -u stdout.ref stdout.real &&
45
51
diff -u stderr.ref stderr.real
46
52
fi &&
47
53
# Test `cargo miri test`
48
- # cargo miri test &&
54
+ cargo miri test &&
49
55
cd ..
50
56
- |
51
57
# and run all tests with full mir
52
- MIRI_SYSROOT=~/.xargo/HOST cargo test --release
53
- - |
54
- # test that the rustc_tests binary compiles
55
- cd rustc_tests &&
56
- cargo build --release &&
57
- cd ..
58
+ cargo test --release
58
59
notifications :
59
60
email :
60
61
on_success : never
Original file line number Diff line number Diff line change 1
- [dependencies ]
2
- std = {features = [" panic_unwind" , " jemalloc" , " backtrace" ]}
1
+ [dependencies .std ]
2
+ features = [" panic_unwind" , " jemalloc" , " backtrace" ]
3
+
4
+ [dependencies .test ]
5
+ stage = 1
You can’t perform that action at this time.
0 commit comments