Browse Source

travis: check code style with rustfmt

Mokhtar Naamani 5 years ago
parent
commit
90c6dae154
1 changed files with 4 additions and 1 deletions
  1. 4 1
      .travis.yml

+ 4 - 1
.travis.yml

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