diff --git a/.travis.yml b/.travis.yml index d5bf00f3..05bd0df7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,5 @@ matrix: include: - rust: nightly env: CLIPPY=true - allow_failures: - - rust: nightly - env: CLIPPY=true - fast_finish: true script: ./travis.sh diff --git a/travis.sh b/travis.sh index 7c981c60..24de5d28 100755 --- a/travis.sh +++ b/travis.sh @@ -17,9 +17,10 @@ channel() { } if [ -n "${CLIPPY}" ]; then - if [ -n "${TRAVIS}" ]; then - # cached installation will not work on a later nightly - cargo install clippy --debug --force + # cached installation will not work on a later nightly + if [ -n "${TRAVIS}" ] && ! cargo install clippy --debug --force; then + echo "COULD NOT COMPILE CLIPPY, IGNORING CLIPPY TESTS" + exit fi cd "$DIR/serde"