mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
test on beta
This commit is contained in:
parent
63ae080138
commit
bb4f32743f
12
.travis.yml
12
.travis.yml
@ -2,6 +2,18 @@ language: rust
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: TARGET=x86_64-unknown-linux-gnu
|
||||
rust: beta
|
||||
if: branch != master
|
||||
|
||||
- env: TARGET=thumbv6m-none-eabi
|
||||
rust: beta
|
||||
if: branch != master
|
||||
|
||||
- env: TARGET=thumbv7m-none-eabi
|
||||
rust: beta
|
||||
if: branch != master
|
||||
|
||||
- env: TARGET=x86_64-unknown-linux-gnu
|
||||
rust: nightly
|
||||
|
||||
|
26
ci/script.sh
26
ci/script.sh
@ -1,22 +1,28 @@
|
||||
set -euxo pipefail
|
||||
|
||||
main() {
|
||||
cargo check --target $TARGET
|
||||
cargo check --target $TARGET --no-default-features
|
||||
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||
cargo check --target $TARGET
|
||||
fi
|
||||
|
||||
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
||||
cargo test --target $TARGET
|
||||
cargo test --target $TARGET --no-default-features
|
||||
cargo test --target $TARGET --release
|
||||
cargo test --target $TARGET --release --no-default-features
|
||||
|
||||
export RUSTFLAGS="-Z sanitizer=thread"
|
||||
export RUST_TEST_THREADS=1
|
||||
export TSAN_OPTIONS="suppressions=$(pwd)/blacklist.txt"
|
||||
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||
cargo test --target $TARGET
|
||||
cargo test --target $TARGET --release
|
||||
|
||||
cargo test --test tsan --target $TARGET
|
||||
cargo test --test tsan --target $TARGET --no-default-features
|
||||
cargo test --test tsan --target $TARGET --release
|
||||
cargo test --test tsan --target $TARGET --release --no-default-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 --no-default-features
|
||||
cargo test --test tsan --target $TARGET --release
|
||||
cargo test --test tsan --target $TARGET --release --no-default-features
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user