]> git.lizzy.rs Git - rust.git/blob - book/src/continuous_integration/travis.md
Auto merge of #10007 - Jarcho:issue_10005, r=giraffate
[rust.git] / 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 ```