From 7925fbad431ff8f9ad9058c1a67abab66a526c4c Mon Sep 17 00:00:00 2001 From: Chris Wong <lambda.fairy@gmail.com> Date: Sat, 17 Dec 2016 14:18:48 +1300 Subject: [PATCH] Travis: add cargo-clippy to $PATH --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 15cc8e2..cbc3020 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,12 @@ sudo: false before_script: - cargo install clippy || true + - export PATH=$HOME/.cargo/bin:$PATH script: - ( cd maud && cargo test --all-features ) - - if command -v cargo-clippy; then ( cd maud && cargo clippy -- -D warnings ); fi + - if command -v cargo-clippy > /dev/null; then ( cd maud && cargo clippy -- -D warnings ); fi - ( cd maud_macros && cargo test --all-features ) - - if command -v cargo-clippy; then ( cd maud_macros && cargo clippy -- -D warnings ); fi + - if command -v cargo-clippy > /dev/null; then ( cd maud_macros && cargo clippy -- -D warnings ); fi - ( cd maud_extras && cargo test --all-features ) - - if command -v cargo-clippy; then ( cd maud_extras && cargo clippy -- -D warnings ); fi + - if command -v cargo-clippy > /dev/null; then ( cd maud_extras && cargo clippy -- -D warnings ); fi