Run rustfmt check on CI

This commit is contained in:
Sergey Pepyakin 2019-01-02 22:17:19 +01:00
parent e047f508fa
commit 1d9ec93ffa
1 changed files with 2 additions and 0 deletions

View File

@ -22,7 +22,9 @@ env:
install:
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup target add wasm32-unknown-unknown; fi
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
# Make sure nightly targets are not broken.
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi