No error if clippy install fails
This commit is contained in:
parent
48f4deac55
commit
34b39083bc
@ -13,9 +13,5 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: CLIPPY=true
|
env: CLIPPY=true
|
||||||
allow_failures:
|
|
||||||
- rust: nightly
|
|
||||||
env: CLIPPY=true
|
|
||||||
fast_finish: true
|
|
||||||
|
|
||||||
script: ./travis.sh
|
script: ./travis.sh
|
||||||
|
@ -17,9 +17,10 @@ channel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ -n "${CLIPPY}" ]; then
|
if [ -n "${CLIPPY}" ]; then
|
||||||
if [ -n "${TRAVIS}" ]; then
|
# cached installation will not work on a later nightly
|
||||||
# cached installation will not work on a later nightly
|
if [ -n "${TRAVIS}" ] && ! cargo install clippy --debug --force; then
|
||||||
cargo install clippy --debug --force
|
echo "COULD NOT COMPILE CLIPPY, IGNORING CLIPPY TESTS"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$DIR/serde"
|
cd "$DIR/serde"
|
||||||
|
Loading…
Reference in New Issue
Block a user