Skip to content

Commit bfbb90e

Browse files
authored
Auto merge of #275 - Atul9:add-cargo-fmt-to-travis-config, r=SimonSapin
Add cargo fmt to travis build config The stable build `cargo fmt` failure(https://travis-ci.com/github/servo/rust-cssparser/jobs/351864972) is fixed in #271, please merge that PR first.
2 parents 6af7835 + a09f6df commit bfbb90e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ rust:
66
- 1.36.0
77

88
script:
9+
- |
10+
if [[ $TRAVIS_RUST_VERSION == "stable" ]]
11+
then
12+
rustup component add rustfmt
13+
cargo fmt --all -- --check || (echo "Please reformat your code with 'cargo fmt'"; false)
14+
fi
915
- cargo build --verbose
1016
- cargo test --verbose
1117
- cargo doc --verbose

0 commit comments

Comments
 (0)