mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
Test serde feature on stable
This commit is contained in:
parent
d551759884
commit
ea0847ad42
16
ci/script.sh
16
ci/script.sh
@ -1,27 +1,27 @@
|
||||
set -euxo pipefail
|
||||
|
||||
main() {
|
||||
cargo check --target $TARGET
|
||||
cargo check --target $TARGET --features 'serde'
|
||||
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||
cargo check --target $TARGET --features 'serde const-fn smaller-atomics'
|
||||
cargo check --target $TARGET --features 'const-fn smaller-atomics'
|
||||
fi
|
||||
|
||||
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
||||
cargo test --target $TARGET
|
||||
cargo test --target $TARGET --release
|
||||
cargo test --target $TARGET --features 'serde'
|
||||
cargo test --target $TARGET --release --features 'serde'
|
||||
|
||||
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||
cargo test --target $TARGET --features 'serde const-fn smaller-atomics'
|
||||
cargo test --target $TARGET --release --features 'serde const-fn smaller-atomics'
|
||||
cargo test --target $TARGET --features 'const-fn smaller-atomics'
|
||||
cargo test --target $TARGET --release --features 'const-fn smaller-atomics'
|
||||
|
||||
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 --features 'serde const-fn smaller-atomics'
|
||||
cargo test --test tsan --target $TARGET --features 'const-fn smaller-atomics'
|
||||
cargo test --test tsan --target $TARGET --release
|
||||
cargo test --test tsan --target $TARGET --release --features 'serde const-fn smaller-atomics'
|
||||
cargo test --test tsan --target $TARGET --release --features 'const-fn smaller-atomics'
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user