mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
26 lines
759 B
Bash
26 lines
759 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
cargo check --target $TARGET
|
|
|
|
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
|
cargo test --target $TARGET
|
|
cargo test --target $TARGET --all-features
|
|
cargo test --target $TARGET --release
|
|
cargo test --target $TARGET --release --all-features
|
|
|
|
export RUSTFLAGS="-Z sanitizer=thread"
|
|
export RUST_TEST_THREADS=1
|
|
export TSAN_OPTIONS="suppressions=$(pwd)/blacklist.txt"
|
|
|
|
cargo test --test tsan --target $TARGET
|
|
cargo test --test tsan --target $TARGET --all-features
|
|
cargo test --test tsan --target $TARGET --release
|
|
cargo test --test tsan --target $TARGET --release --all-features
|
|
fi
|
|
}
|
|
|
|
if [ $TRAVIS_BRANCH != master ]; then
|
|
main
|
|
fi
|