From 28015309530c8665bec196f2eed72ee91fcfef25 Mon Sep 17 00:00:00 2001 From: Chris Wong <lambda.fairy@gmail.com> Date: Sun, 27 Sep 2020 20:59:49 +1000 Subject: [PATCH] Enforce rustfmt on Travis CI --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index caf05c0..ec8a16a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,3 +43,10 @@ jobs: local_dir: docs/site on: branch: master + - name: "Format" + before_script: + - rustup component add rustfmt + script: + - cargo fmt -- --check + - (cd benchmarks && cargo fmt -- --check) + - (cd docs && cargo fmt -- --check)