Skip to content

Commit ab8db71

Browse files
Merged master
2 parents cdc076f + 8e0e1cf commit ab8db71

File tree

7 files changed

+475
-20
lines changed

7 files changed

+475
-20
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ before_cache: |
1818
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
1919
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
2020
fi
21-
script:
22-
- cargo clean
23-
- cargo build
24-
- cargo test
21+
before_script:
22+
- rustup component add rustfmt
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
2531
after_success: |
2632
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
2733
cargo tarpaulin --out Xml

0 commit comments

Comments
 (0)