mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 22:26:37 +00:00
enable clippy
This commit is contained in:
parent
26c1fdd31f
commit
09773eca82
1 changed files with 8 additions and 4 deletions
12
.travis.yml
12
.travis.yml
|
@ -24,14 +24,18 @@ addons:
|
||||||
|
|
||||||
# Add clippy
|
# Add clippy
|
||||||
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 );
|
( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false );
|
||||||
# fi
|
fi
|
||||||
- export PATH=$PATH:~/.cargo/bin
|
- export PATH=$PATH:~/.cargo/bin
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo test --no-default-features
|
- cargo test --no-default-features
|
||||||
|
- |
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" && $CLIPPY ]]; then
|
||||||
|
cargo clippy
|
||||||
|
fi
|
||||||
|
|
||||||
# Upload docs
|
# Upload docs
|
||||||
after_success:
|
after_success:
|
||||||
|
|
Loading…
Reference in a new issue