Skip to content

Commit 161e7c4

Browse files
Optimize for speed and fast failure
1 parent 89bf51e commit 161e7c4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.travis.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ before_cache: |
2020
fi
2121
before_script:
2222
- rustup component add rustfmt
23-
script:
24-
- cargo clean
25-
- cargo fmt --all -- --check
26-
- cargo build
27-
- cargo test
23+
# As a result of https://github.com/travis-ci/travis-ci/issues/1066, we run
24+
# everything in one large command instead of multiple commands.
25+
# In this way, the build stops immediately if one of the commands fails.
26+
script: |
27+
cargo clean &&
28+
cargo fmt --all -- --check &&
29+
cargo build &&
30+
cargo test
2831
after_success: |
2932
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
3033
cargo tarpaulin --out Xml

0 commit comments

Comments
 (0)