Skip to content

Commit df7c946

Browse files
committed
[travis] Catch failures on nightly builds
1 parent c64e1d2 commit df7c946

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.travis.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ script:
3131
- cargo test --verbose --features 'serde'
3232
- cargo test --verbose --features 'with_serde'
3333

34-
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
35-
cargo bench --verbose --features 'bench_it';
36-
fi
34+
- test "$TRAVIS_RUST_VERSION" != "nightly" ||
35+
cargo bench --verbose --features 'bench_it'
3736

38-
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
39-
cargo run --verbose --features 'flame_it' --example 'flame_udhr';
40-
fi
37+
- test "$TRAVIS_RUST_VERSION" != "nightly" ||
38+
cargo run --verbose --features 'flame_it' --example 'flame_udhr'

0 commit comments

Comments
 (0)