mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 14:40:32 +00:00
readme: show how to make the travis job fail when using clippy
This commit is contained in:
parent
e270050427
commit
535f4c2b93
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue