]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/book/src/continuous_integration/travis.md
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
[rust.git] / src / tools / clippy / book / src / continuous_integration / travis.md
1 # Travis CI
2
3 You can add Clippy to Travis CI in the same way you use it locally:
4
5 ```yml
6 language: rust
7 rust:
8   - stable
9   - beta
10 before_script:
11   - rustup component add clippy
12 script:
13   - cargo clippy
14   # if you want the build job to fail when encountering warnings, use
15   - cargo clippy -- -D warnings
16   # in order to also check tests and non-default crate features, use
17   - cargo clippy --all-targets --all-features -- -D warnings
18   - cargo test
19   # etc.
20 ```