1
0
mirror of https://github.com/actix/examples synced 2025-02-22 09:13:17 +01:00

Prevent jobs from being terminated on Travis (#167)

* Prevent jobs from being terminated

* Fix installing clippy

* Fix command

* Run Clippy on nightly
This commit is contained in:
Yuki Okushi 2019-09-02 18:20:15 +09:00 committed by GitHub
parent 6272b56699
commit bb639d5fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,13 @@ sudo: false
dist: trusty
cache:
cargo: true
apt: true
directories:
- $HOME/.cargo
- $HOME/.rustup
before_cache:
- rm -rf $HOME/.cargo/registry
matrix:
include:
@ -28,9 +33,13 @@ before_install:
before_script:
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false );
rustup component add clippy --toolchain=nightly
fi
- export PATH=$PATH:~/.cargo/bin
script:
- cargo check --all
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo clippy
fi