aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhai96_ <hvksmr1996@gmail.com>2019-05-01 04:31:13 +0000
committerkhai96_ <hvksmr1996@gmail.com>2019-05-01 04:31:13 +0000
commit33f797aa38e3a62d050776473a7fdf1d1dc14a4e (patch)
tree8e310bac644864c7fbd07033543403ab14c38814
parentEnable clippy in RLS (diff)
downloadminiserve-33f797aa38e3a62d050776473a7fdf1d1dc14a4e.tar.gz
miniserve-33f797aa38e3a62d050776473a7fdf1d1dc14a4e.zip
Add clippy to CI
Diffstat (limited to '')
-rw-r--r--.travis.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 42c4136..9aa5d7c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -39,6 +39,9 @@ matrix:
- BIN_NAME=miniserve
- PROPER_NAME=miniserve-osx-x86_64
os: osx
+ - rust: nightly
+ env:
+ - CLIPPY=true
before_install:
- rustup self update
@@ -47,10 +50,12 @@ before_install:
install:
# On Apple, the default target is already the right one.
- if [[ -n $TARGET && $TARGET != "x86_64-apple-darwin" ]]; then rustup target add $TARGET; fi
+ - if [[ -n $CLIPPY ]]; then rustup component add clippy; fi
script:
# If this is a normal, non-deployment build...
- - if [[ -z $TARGET ]]; then cargo build --verbose && RUST_BACKTRACE=1 cargo test; fi
+ - if [[ -z $TARGET && -z $CLIPPY ]]; then cargo build --verbose && RUST_BACKTRACE=1 cargo test; fi
+ - if [[ -n $CLIPPY ]]; then cargo clippy -- --deny clippy::all; fi
- if [[ -n $TARGET ]]; then cargo build --verbose --release --target $TARGET; fi
before_deploy: