aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-08-18 16:17:19 -0700
committerZeyla Hellyer <[email protected]>2017-08-18 17:52:53 -0700
commit4f891e550bc9956ed0d5fcf906e2d9bb142dece2 (patch)
treedb9848c4d4b502792b56c4ee58eb6d7519c5544a
parents/rustfmt.toml/.rustfmt.toml (diff)
downloadserenity-4f891e550bc9956ed0d5fcf906e2d9bb142dece2.tar.xz
serenity-4f891e550bc9956ed0d5fcf906e2d9bb142dece2.zip
travis: run rustfmt
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 4e8d7c7..5734cb3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,5 +21,9 @@ before_script:
- sudo make install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ldconfig; fi
- cd ..
+ - export PATH="$PATH:$HOME/.cargo/bin"
+ - which rustfmt || cargo install rustfmt
script:
+ - cargo fmt -- --write-mode=diff
+ - cargo build --all-features
- cargo test --all-features