Skip to content

Commit

Permalink
Add Rustfmt to Travis CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
p-e-w committed Oct 13, 2018
1 parent d55507d commit bc29f8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -16,8 +16,10 @@ before_install:

before_script:
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then rustup component add clippy-preview; fi
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then rustup component add rustfmt-preview; fi

script:
- cargo build --verbose
- cargo test --verbose
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo clippy --all-targets --all-features -- -D warnings; fi
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi

0 comments on commit bc29f8c

Please sign in to comment.