Add Rustfmt checking to Travis, cache Cargo artifacts

This commit is contained in:
James 2018-01-31 17:19:21 +11:00
parent 4d5a4ceb84
commit 1dfdd9ad2c

View File

@ -1,3 +1,9 @@
language: rust
rust:
- stable
cache: cargo
before_script: (cargo install rustfmt || true)
script:
- |
cargo fmt -- --write-mode=diff &&
cargo build