diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-05-02 23:04:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 23:04:07 +0000 |
commit | c0ef2fbf569047185ea472702523d7c1b54c030a (patch) | |
tree | 478ff421f74e21d26f8e18ec8f030f84ce57a183 /.travis.yml | |
parent | Add note about empty arrays (diff) | |
parent | Merge branch 'new-clippy-experiment' into new-clippy (diff) | |
download | miniserve-c0ef2fbf569047185ea472702523d7c1b54c030a.tar.gz miniserve-c0ef2fbf569047185ea472702523d7c1b54c030a.zip |
Merge pull request #99 from KSXGitHub/new-clippy
A better Clippy integration
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index c1bf8f9..b436fb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,9 @@ matrix: - BIN_NAME=miniserve - PROPER_NAME=miniserve-osx-x86_64 os: osx + - rust: nightly-2019-04-26 + env: + - CLIPPY=true before_install: - rustup self update @@ -55,10 +58,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: |