From 657c85a8c1dd593104214cd490205ced1abbe66b Mon Sep 17 00:00:00 2001 From: Chaya Danzinger Date: Sat, 15 Dec 2018 14:31:16 -0500 Subject: [PATCH 1/2] add rustfmt enforcements to travis.yml --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index f273fbf..7f4919c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,9 +18,13 @@ cache: - /home/travis/.cargo before_script: - if [[ "$TRAVIS_RUST_VERSION" == "stable" || "$TRAVIS_RUST_VERSION" == "nightly" ]]; then rustup component add clippy-preview; fi + - rustup component add rustfmt script: - if [[ "$TRAVIS_RUST_VERSION" == "stable" || "$TRAVIS_RUST_VERSION" == "nightly" ]]; then cargo clippy --all-targets --all-features -- -D warnings; fi + - cargo fmt --all --write-mode diff + - cargo build - cargo test --verbose + matrix: allow_failures: - rust: nightly From 6a00c42d973034e06ff88aa6ced7dcceddc4e936 Mon Sep 17 00:00:00 2001 From: Chaya Danzinger Date: Thu, 20 Dec 2018 15:19:19 -0500 Subject: [PATCH 2/2] have travis print out tool version numbers --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5733f01..bc3ffc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,9 @@ matrix: rust: stable before_script: - rustup component add clippy-preview + - cargo clippy --version - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings - cargo fmt --all -- --check @@ -59,7 +61,9 @@ matrix: rust: nightly before_script: - rustup component add clippy-preview + - cargo clippy --version - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings - cargo fmt --all -- --check @@ -72,7 +76,9 @@ matrix: rust: stable before_script: - rustup component add clippy-preview + - cargo clippy --version - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings - cargo fmt --all -- --check @@ -94,7 +100,9 @@ matrix: rust: nightly before_script: - rustup component add clippy-preview + - cargo clippy --version - rustup component add rustfmt + - rustfmt --version script: - cargo clippy --all-targets --all-features -- -D warnings - cargo fmt --all -- --check