]> git.proxmox.com Git - rustc.git/blame - vendor/memoffset/ci/miri.sh
New upstream version 1.51.0+dfsg1
[rustc.git] / vendor / memoffset / ci / miri.sh
CommitLineData
f035d41b
XL
1set -ex
2
5869c6ff 3# Install Miri.
f035d41b
XL
4MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
5echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
6rustup default "$MIRI_NIGHTLY"
f035d41b 7rustup component add miri
f035d41b 8
5869c6ff 9# Run tests.
f035d41b
XL
10cargo miri test
11cargo miri test --all-features
12
13# Restore old state in case Travis uses this cache for other jobs.
14rustup default nightly