abrasion/third_party/cargo/vendor/memoffset-0.6.3/ci/miri.sh

15 lines
408 B
Bash
Raw Normal View History

2020-03-16 22:30:09 +00:00
set -ex
2021-01-07 23:38:16 +00:00
# Install Miri.
2020-03-16 22:30:09 +00:00
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
2021-01-07 23:38:16 +00:00
# Run tests.
2020-03-16 22:30:09 +00:00
cargo miri test
2021-01-07 23:38:16 +00:00
cargo miri test --all-features
# Restore old state in case Travis uses this cache for other jobs.
rustup default nightly