Skip to content

Commit bb4f327

Browse files
committed
test on beta
1 parent 63ae080 commit bb4f327

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ language: rust
22

33
matrix:
44
include:
5+
- env: TARGET=x86_64-unknown-linux-gnu
6+
rust: beta
7+
if: branch != master
8+
9+
- env: TARGET=thumbv6m-none-eabi
10+
rust: beta
11+
if: branch != master
12+
13+
- env: TARGET=thumbv7m-none-eabi
14+
rust: beta
15+
if: branch != master
16+
517
- env: TARGET=x86_64-unknown-linux-gnu
618
rust: nightly
719

ci/script.sh

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
set -euxo pipefail
22

33
main() {
4-
cargo check --target $TARGET
4+
cargo check --target $TARGET --no-default-features
5+
if [ $TRAVIS_RUST_VERSION = nightly ]; then
6+
cargo check --target $TARGET
7+
fi
58

69
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
7-
cargo test --target $TARGET
810
cargo test --target $TARGET --no-default-features
9-
cargo test --target $TARGET --release
1011
cargo test --target $TARGET --release --no-default-features
1112

12-
export RUSTFLAGS="-Z sanitizer=thread"
13-
export RUST_TEST_THREADS=1
14-
export TSAN_OPTIONS="suppressions=$(pwd)/blacklist.txt"
13+
if [ $TRAVIS_RUST_VERSION = nightly ]; then
14+
cargo test --target $TARGET
15+
cargo test --target $TARGET --release
16+
17+
export RUSTFLAGS="-Z sanitizer=thread"
18+
export RUST_TEST_THREADS=1
19+
export TSAN_OPTIONS="suppressions=$(pwd)/blacklist.txt"
1520

16-
cargo test --test tsan --target $TARGET
17-
cargo test --test tsan --target $TARGET --no-default-features
18-
cargo test --test tsan --target $TARGET --release
19-
cargo test --test tsan --target $TARGET --release --no-default-features
21+
cargo test --test tsan --target $TARGET
22+
cargo test --test tsan --target $TARGET --no-default-features
23+
cargo test --test tsan --target $TARGET --release
24+
cargo test --test tsan --target $TARGET --release --no-default-features
25+
fi
2026
fi
2127
}
2228

0 commit comments

Comments
 (0)