Skip to content

Commit 9194a40

Browse files
tesujiDylan-DPC
authored andcommitted
CI: Check Rust formatting for each commit (#909)
1 parent 5069968 commit 9194a40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ before_install:
4444
script:
4545
- cargo test --all
4646
- cargo test --all --no-default-features
47+
- if [ "$TARGET" = x86_64-unknown-linux-gnu ] && [ "$TRAVIS_RUST_VERSION" = stable ]; then
48+
rustup component add rustfmt;
49+
rustfmt -vV;
50+
cargo fmt --all -- --check;
51+
fi
4752

4853
before_deploy:
4954
- sh ci/before_deploy.sh

0 commit comments

Comments
 (0)