Skip to content

Commit daa9223

Browse files
authored
Merge pull request #3185 from matthiaskrgr/readme_travis
readme: show how to make the travis job fail when using clippy
2 parents e270050 + 535f4c2 commit daa9223

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,15 @@ You can add Clippy to Travis CI in the same way you use it locally:
8282

8383
```yml
8484
- rust: stable
85+
- rust: beta
8586
before_script:
8687
- rustup component add clippy-preview
8788
script:
8889
- cargo clippy
90+
# if you want the build job to fail when encountering warnings, use
91+
- cargo clippy -- -D warnings
92+
# in order to also check tests and none-default crate features, use
93+
- cargo clippy --all-targets --all-features -- -D warnings
8994
- cargo test
9095
# etc.
9196
```

0 commit comments

Comments
 (0)