Procházet zdrojové kódy

Merge pull request #5 from Sh4d1/travis-rustfmt

Add rustfmt check to the CI
Isaac Woods před 7 roky
rodič
revize
ea0817e62b
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  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