Add test.sh and fmt.sh to travis.yml

Do not accept unformatted code.
This commit is contained in:
Dan Robertson
2018-03-07 03:09:33 +00:00
parent 98b2fba518
commit 628c68abe3
+7
View File
@@ -0,0 +1,7 @@
language: rust
cache: cargo
before_script:
- rustup component add rustfmt-preview
script:
- bash ./fmt.sh -- --write-mode=diff
- bash ./test.sh