From 7ea0f67ccfbcd6153814c0db82ad76a12d1164aa Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Thu, 23 Aug 2018 09:55:56 -0400 Subject: [PATCH] only do rustfmt on nightly --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e7d6531..9ad0c85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,13 @@ rust: - beta - nightly before_script: - - rustup component add rustfmt-preview + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then + rustup component add rustfmt-preview + fi' script: - - cargo fmt --all -- --check + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then + cargo fmt --all -- --check + fi' - cargo build - cargo test matrix: