diff options
| author | Philipp Hansch <dev@phansch.net> | 2018-09-14 10:54:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-14 10:54:37 +0100 |
| commit | daa922393c7417dcee930a880c80668cda3e308a (patch) | |
| tree | 8abc10590be6df2013b6501c49089bd78026ce41 | |
| parent | e27005042739fa0ac6dbee78ed20f18c6de5ae69 (diff) | |
| parent | 535f4c2b933995065aed069fab5536ea9ee06682 (diff) | |
| download | rust-daa922393c7417dcee930a880c80668cda3e308a.tar.gz rust-daa922393c7417dcee930a880c80668cda3e308a.zip | |
Merge pull request #3185 from matthiaskrgr/readme_travis
readme: show how to make the travis job fail when using clippy
| -rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md index e41de046065..79cb35587f4 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,15 @@ You can add Clippy to Travis CI in the same way you use it locally: ```yml - rust: stable +- rust: beta before_script: - rustup component add clippy-preview script: - cargo clippy +# if you want the build job to fail when encountering warnings, use + - cargo clippy -- -D warnings +# in order to also check tests and none-default crate features, use + - cargo clippy --all-targets --all-features -- -D warnings - cargo test # etc. ``` |
