Merge pull request #3182 from phansch/explain_travis

Explain Travis CI usage
This commit is contained in:
Philipp Hansch 2018-09-14 09:12:25 +01:00 committed by GitHub
commit e270050427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,20 @@ cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
*[Note](https://github.com/rust-lang-nursery/rust-clippy/wiki#a-word-of-warning):*
Be sure that Clippy was compiled with the same version of rustc that cargo invokes here!
### Travis CI
You can add Clippy to Travis CI in the same way you use it locally:
```yml
- rust: stable
before_script:
- rustup component add clippy-preview
script:
- cargo clippy
- cargo test
# etc.
```
## Configuration
Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.