Explain Travis CI usage

Closes #2432
This commit is contained in:
Philipp Hansch 2018-09-14 08:21:14 +02:00
parent dac5e2d3a5
commit 65b58de545
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B

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.