Merge pull request #22 from RalfJung/miri

run CI in Miri
This commit is contained in:
Ralf Jung 2019-08-16 14:34:32 +02:00 committed by GitHub
commit 903e24f077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 10 deletions

View File

@ -1,24 +1,32 @@
sudo: false
language: rust
rust:
- 1.20.0 # Oldest supported
- 1.36.0 # Oldest supported with MaybeUninit
- stable
- beta
- nightly
cache:
cargo: true
matrix:
include:
- rust: 1.20.0 # Oldest supported
- rust: 1.36.0 # Oldest supported with MaybeUninit
- rust: stable
- rust: beta
- rust: nightly
- env: MIRI
rust: nightly
os: linux
script:
- sh ci/miri.sh
- env: RUSTFMT
rust: 1.36.0
install:
- rustup component add rustfmt
script:
- cargo fmt -- --check
- env: RUSTFLAGS="-D warnings"
rust: 1.33.0 # `stable`: Locking down for consistent behavior
script:
- cargo check --tests
fast_finish: true
install:
- rustc -Vv
@ -27,6 +35,3 @@ install:
script:
- rm -rf target/debug/deps/*memoffset* # Avoid rustdoc problems
- cargo test --verbose
cache:
cargo: true

10
ci/miri.sh Normal file
View File

@ -0,0 +1,10 @@
set -ex
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
rustup default "$MIRI_NIGHTLY"
rustup component add miri
cargo miri setup
cargo miri test