|
1 | 1 | set -euxo pipefail
|
2 | 2 |
|
3 | 3 | 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 |
5 | 8 |
|
6 | 9 | if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
7 |
| - cargo test --target $TARGET |
8 | 10 | cargo test --target $TARGET --no-default-features
|
9 |
| - cargo test --target $TARGET --release |
10 | 11 | cargo test --target $TARGET --release --no-default-features
|
11 | 12 |
|
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" |
15 | 20 |
|
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 |
20 | 26 | fi
|
21 | 27 | }
|
22 | 28 |
|
|
0 commit comments