mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-22 06:42:25 +00:00
commit
481c6879ec
@ -48,6 +48,8 @@ matrix:
|
||||
- { os: osx, rust: 1.34.0, env: TARGET=i386-apple-ios }
|
||||
- { os: osx, rust: 1.34.0, env: TARGET=x86_64-apple-ios }
|
||||
|
||||
- { os: linux, rust: nightly, env: RUN_MIRI=1 }
|
||||
|
||||
script:
|
||||
- pushd scripts
|
||||
- ./travis.sh
|
||||
|
@ -2,6 +2,27 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$RUN_MIRI" != "" ]]; then
|
||||
|
||||
cargo clean
|
||||
|
||||
# Install and run the latest version of nightly where miri built successfully.
|
||||
# Taken from: https://github.com/rust-lang/miri#running-miri-on-ci
|
||||
|
||||
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
|
||||
|
||||
cargo miri test --verbose
|
||||
cargo miri test --verbose --no-default-features
|
||||
cargo miri test --verbose --all-features
|
||||
|
||||
else
|
||||
|
||||
rustup component add clippy
|
||||
cargo clippy
|
||||
|
||||
@ -51,5 +72,6 @@ else
|
||||
# Push nothing, target host CPU architecture
|
||||
cargo test --no-default-features $FLAGS
|
||||
cargo test $FLAGS
|
||||
#cargo test --all-features $FLAGS
|
||||
fi
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user