Skip to content

Commit b938576

Browse files
committed
Check rustfmt on Travis
1 parent 5d19e63 commit b938576

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ branches:
3232
- trying.tmp
3333
- staging.tmp
3434

35+
before_script:
36+
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then rustup component add rustfmt; fi
37+
3538
script:
39+
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then cargo fmt -- --check; fi
40+
3641
- cargo build --verbose --features "$FEATURES"
3742
- cargo test --verbose --features "$FEATURES"
3843
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES"; fi

0 commit comments

Comments
 (0)