Browse Source

Merge pull request #5 from Sh4d1/travis-rustfmt

Add rustfmt check to the CI
Isaac Woods 7 years ago
parent
commit
ea0817e62b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      .travis.yml

+ 8 - 0
.travis.yml

@@ -11,5 +11,13 @@ matrix:
     - rust: beta
   fast_finish: true
 
+before_script:
+  - rustup component add rustfmt-preview
+
+script:
+  - cargo fmt --all -- --write-mode=check
+  - cargo build
+  - cargo test
+
 notifications:
   email: change