File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11
11
- osx
12
12
13
13
before_script :
14
- # macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
14
+ # macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307, https://github.com/travis-ci/travis-ci/issues/10165 )
15
15
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
16
16
# Compute the rust version we use. We do not use "language: rust" to have more control here.
17
17
- |
@@ -37,11 +37,11 @@ script:
37
37
cargo test --release --all-features &&
38
38
cargo install --all-features --force --path .
39
39
- |
40
- # starting here, use MIR-full libstd
40
+ # Get ourselves a MIR-full libstd
41
41
cargo miri setup &&
42
42
export MIRI_SYSROOT=~/.miri/HOST
43
43
- |
44
- # run all tests with full mir
44
+ # Test miri with full MIR
45
45
cargo test --release --all-features
46
46
- |
47
47
# Test cargo integration
Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ build: false
27
27
test_script :
28
28
- set RUSTFLAGS=-g
29
29
- set RUST_BACKTRACE=1
30
+ # Test plain miri
30
31
- cargo build --release --all-features --all-targets
31
32
- cargo test --release --all-features
33
+ # Get ourselves a MIR-full libstd
32
34
- cargo run --release --all-features --bin cargo-miri -- miri setup
33
35
- set MIRI_SYSROOT=%USERPROFILE%\.miri\HOST
36
+ # Test miri with full MIR
34
37
- cargo test --release --all-features
35
38
36
39
notifications :
Original file line number Diff line number Diff line change @@ -137,9 +137,8 @@ fn setup(ask_user: bool) {
137
137
// Then, we also need rust-src. Let's see if it is already installed.
138
138
let sysroot = Command :: new ( "rustc" ) . args ( & [ "--print" , "sysroot" ] ) . output ( ) . unwrap ( ) . stdout ;
139
139
let sysroot = std:: str:: from_utf8 ( & sysroot[ ..] ) . unwrap ( ) ;
140
- let src = Path :: new ( sysroot. trim_end_matches ( '\n' ) ) . join ( "lib/ rustlib/ src" ) ;
140
+ let src = Path :: new ( sysroot. trim_end_matches ( '\n' ) ) . join ( "lib" ) . join ( " rustlib" ) . join ( " src") ;
141
141
if !src. exists ( ) {
142
- println ! ( "Could not find {:?}" , src) ;
143
142
if ask_user {
144
143
ask ( "It seems you do not have the rust-src component installed. I will run `rustup component add rust-src`. Proceed?" ) ;
145
144
}
You can’t perform that action at this time.
0 commit comments