No error if clippy install fails

This commit is contained in:
David Tolnay 2017-02-01 00:38:02 -08:00
parent 48f4deac55
commit 34b39083bc
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 4 additions and 7 deletions

View File

@ -13,9 +13,5 @@ matrix:
include:
- rust: nightly
env: CLIPPY=true
allow_failures:
- rust: nightly
env: CLIPPY=true
fast_finish: true
script: ./travis.sh

View File

@ -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
if [ -n "${TRAVIS}" ] && ! cargo install clippy --debug --force; then
echo "COULD NOT COMPILE CLIPPY, IGNORING CLIPPY TESTS"
exit
fi
cd "$DIR/serde"