diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2017-05-15 22:46:43 +0900 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-05-15 22:46:43 +0900 |
commit | 03564214e73d556a87ef78353abf4f3b8eaae3c0 (patch) | |
tree | 1392c4cfc069f845fdb7c11d81ea764466bcb3f7 /.travis.yml | |
parent | 4c8f9742f882dd1366f4130ac11a5ce4a786180f (diff) |
Added check for rustfmt in travis
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index cbfbc22..e078422 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,13 +22,16 @@ before_script: - | pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH + - (cargo install rustfmt || true) script: + - cargo fmt -- --write-mode=diff - | travis-cargo build && travis-cargo test && travis-cargo bench && travis-cargo doc - cargo run --example simple_search + - cargo rust after_success: - bash ./script/build-doc.sh - travis-cargo doc-upload |