CI: force using locked versions

This commit is contained in:
Ralf Jung 2019-10-14 09:40:11 +02:00
parent d5003bc07d
commit 917effada1
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ install:
build_script: build_script:
- set RUSTFLAGS=-C debug-assertions - set RUSTFLAGS=-C debug-assertions
# Build and install miri # Build and install miri
- cargo build --release --all-features --all-targets - cargo build --release --all-features --all-targets --locked
- cargo install --all-features --force --path . --locked --offline - cargo install --all-features --force --path . --locked --offline
# Get ourselves a MIR-full libstd, and use it henceforth # Get ourselves a MIR-full libstd, and use it henceforth
- cargo miri setup - cargo miri setup
@ -46,7 +46,7 @@ test_script:
- set RUST_TEST_NOCAPTURE=1 - set RUST_TEST_NOCAPTURE=1
- set RUST_BACKTRACE=1 - set RUST_BACKTRACE=1
# Test miri # Test miri
- cargo test --release --all-features - cargo test --release --all-features --locked
# Test cargo integration # Test cargo integration
- cd test-cargo-miri - cd test-cargo-miri
- '"C:\msys64\mingw64\bin\python3.exe" run-test.py' - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'

View File

@ -12,13 +12,13 @@ export RUSTC_EXTRA_FLAGS="-D warnings"
# Prepare # Prepare
echo "Build and install miri" echo "Build and install miri"
./miri build --all-targets ./miri build --all-targets --locked
./miri install ./miri install # implicitly locked
echo echo
# Test # Test
function run_tests { function run_tests {
./miri test ./miri test --locked
# "miri test" has built the sysroot for us, now this should pass without # "miri test" has built the sysroot for us, now this should pass without
# any interactive questions. # any interactive questions.
test-cargo-miri/run-test.py test-cargo-miri/run-test.py