From 09773eca82efaa7a3207e4097db9fc71638f42bc Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 14 Oct 2017 01:26:01 -0700 Subject: [PATCH] enable clippy --- .travis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c24161c10..af678cb7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,14 +24,18 @@ addons: # Add clippy before_script: - #- | - # if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then - # ( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false ); - # fi + - | + if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then + ( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false ); + fi - export PATH=$PATH:~/.cargo/bin script: - cargo test --no-default-features + - | + if [[ "$TRAVIS_RUST_VERSION" == "nightly" && $CLIPPY ]]; then + cargo clippy + fi # Upload docs after_success: