mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-25 04:23:22 +00:00
21 lines
462 B
Markdown
21 lines
462 B
Markdown
|
# Travis CI
|
||
|
|
||
|
You can add Clippy to Travis CI in the same way you use it locally:
|
||
|
|
||
|
```yml
|
||
|
language: rust
|
||
|
rust:
|
||
|
- stable
|
||
|
- beta
|
||
|
before_script:
|
||
|
- rustup component add clippy
|
||
|
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 non-default crate features, use
|
||
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||
|
- cargo test
|
||
|
# etc.
|
||
|
```
|