Skip to content

Commit

Permalink
build: add cargo fmt to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m4b committed Jan 20, 2020
1 parent 35f0fc0 commit 2188699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -13,6 +13,10 @@ matrix:
- rust: nightly

script:
- if [ "$TRAVIS_OS_NAME" = linux ] && [ "$TRAVIS_RUST_VERSION" = stable ]; then
rustup component add rustfmt;
cargo fmt -- --check;
fi
- cargo build --verbose
- cargo test --verbose
- cargo build --release
Expand Down

0 comments on commit 2188699

Please sign in to comment.