Selaa lähdekoodia

travis: check code style with rustfmt

Mokhtar Naamani 5 vuotta sitten
vanhempi
commit
90c6dae154
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      .travis.yml

+ 4 - 1
.travis.yml

@@ -3,7 +3,10 @@ rust:
   - 1.34.0
 cache:
   - cargo
-script:
+before_script:
+  - rustup component add rustfmt
   - ./setup.sh
+script:
+  - cargo fmt --all -- --check
   - ./build.sh
   - cargo test --verbose --all