mirror of
https://github.com/actix/examples
synced 2025-02-23 01:33:18 +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:
parent
6272b56699
commit
bb639d5fe3
13
.travis.yml
13
.travis.yml
@ -3,8 +3,13 @@ sudo: false
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
cargo: true
|
|
||||||
apt: true
|
apt: true
|
||||||
|
directories:
|
||||||
|
- $HOME/.cargo
|
||||||
|
- $HOME/.rustup
|
||||||
|
|
||||||
|
before_cache:
|
||||||
|
- rm -rf $HOME/.cargo/registry
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -28,9 +33,13 @@ before_install:
|
|||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||||
( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false );
|
rustup component add clippy --toolchain=nightly
|
||||||
fi
|
fi
|
||||||
- export PATH=$PATH:~/.cargo/bin
|
- export PATH=$PATH:~/.cargo/bin
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo check --all
|
- cargo check --all
|
||||||
|
- |
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||||
|
cargo clippy
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user