Test miri on latest nightly with a miri

This commit is contained in:
David Tolnay
2020-04-23 02:57:38 -07:00
parent dd5368bb7f
commit 58b49b5bda
+8 -4
View File
@@ -16,9 +16,13 @@ matrix:
script:
- cargo build
- cargo build --features small
- rust: nightly
name: Miri
script:
- rustup component add miri || travis_terminate 0
- name: Miri
install:
- 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 set profile minimal
- rustup default "$MIRI_NIGHTLY"
- rustup component add miri
- cargo miri setup
script:
- cargo miri test