Merge pull request #347 from kngwyu/clippy-fallback

[CI] Install clippy from git when it's missing
This commit is contained in:
Yuji Kanagawa 2019-02-10 12:00:03 +09:00 committed by GitHub
commit baaccfc775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ _latest() {
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TRAVIS_RUST_VERSION
export PATH=$PATH:$HOME/.cargo/bin
rustup component add clippy
rustup component add clippy || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
rustup component add rustfmt
### Setup kcov #################################################################