Add cargo fmt as a build step to pass CI

This commit is contained in:
Alex Stokes 2019-01-10 14:59:15 -06:00
parent a2b23d6ae2
commit 32d9699541
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

@ -1,5 +1,7 @@
language: rust
cache: cargo
script:
- cargo fmt --all -- --check
- cargo build --verbose --all
- cargo test --verbose --all
rust:
@ -10,3 +12,6 @@ matrix:
allow_failures:
- rust: nightly
fast_finish: true
install:
- (cargo install rustfmt || true)
- PATH=$PATH:/home/travis/.cargo/bin