1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-18 14:16:47 +00:00

enable clippy

This commit is contained in:
Nikolay Kim 2017-10-14 01:26:01 -07:00
parent 26c1fdd31f
commit 09773eca82

View file

@ -24,14 +24,18 @@ addons:
# Add clippy
before_script:
#- |
# if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
# ( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false );
# fi
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
( ( cargo install clippy && export CLIPPY=true ) || export CLIPPY=false );
fi
- export PATH=$PATH:~/.cargo/bin
script:
- cargo test --no-default-features
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" && $CLIPPY ]]; then
cargo clippy
fi
# Upload docs
after_success: