tweak comments, remove debug output

This commit is contained in:
Ralf Jung 2018-11-25 17:30:50 +01:00
parent bb47df94dd
commit 16ac7ec1b1
3 changed files with 7 additions and 5 deletions

View File

@ -11,7 +11,7 @@ os:
- osx
before_script:
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307, https://github.com/travis-ci/travis-ci/issues/10165)
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
# Compute the rust version we use. We do not use "language: rust" to have more control here.
- |
@ -37,11 +37,11 @@ script:
cargo test --release --all-features &&
cargo install --all-features --force --path .
- |
# starting here, use MIR-full libstd
# Get ourselves a MIR-full libstd
cargo miri setup &&
export MIRI_SYSROOT=~/.miri/HOST
- |
# run all tests with full mir
# Test miri with full MIR
cargo test --release --all-features
- |
# Test cargo integration

View File

@ -27,10 +27,13 @@ build: false
test_script:
- set RUSTFLAGS=-g
- set RUST_BACKTRACE=1
# Test plain miri
- cargo build --release --all-features --all-targets
- cargo test --release --all-features
# Get ourselves a MIR-full libstd
- cargo run --release --all-features --bin cargo-miri -- miri setup
- set MIRI_SYSROOT=%USERPROFILE%\.miri\HOST
# Test miri with full MIR
- cargo test --release --all-features
notifications:

View File

@ -137,9 +137,8 @@ fn setup(ask_user: bool) {
// Then, we also need rust-src. Let's see if it is already installed.
let sysroot = Command::new("rustc").args(&["--print", "sysroot"]).output().unwrap().stdout;
let sysroot = std::str::from_utf8(&sysroot[..]).unwrap();
let src = Path::new(sysroot.trim_end_matches('\n')).join("lib/rustlib/src");
let src = Path::new(sysroot.trim_end_matches('\n')).join("lib").join("rustlib").join("src");
if !src.exists() {
println!("Could not find {:?}", src);
if ask_user {
ask("It seems you do not have the rust-src component installed. I will run `rustup component add rust-src`. Proceed?");
}