From a29e71ec49f470c35ad76c6e3e8ae388330135eb Mon Sep 17 00:00:00 2001 From: "R. Andrew Ohana" Date: Wed, 27 Jun 2018 22:38:16 -0700 Subject: [PATCH] ci: check formatting --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 23bf094ce..3892b09fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,11 @@ matrix: install: true script: cargo build --manifest-path crates/cli/Cargo.toml + # check formatting + - rust: nightly + before_install: rustup component add rustfmt-preview --toolchain nightly + script: cargo fmt -- --check + # Tests pass on nightly - rust: nightly before_install: @@ -41,6 +46,7 @@ matrix: # Check JS output from all tests against eslint - ./node_modules/.bin/eslint ./target/generated-tests/*/out*.js env: RUST_BACKTRACE=1 + # WebIDL tests pass on nightly - rust: nightly before_install: rustup component add rustfmt-preview --toolchain nightly