Skip to content

Commit e270050

Browse files
authored
Merge pull request #3182 from phansch/explain_travis
Explain Travis CI usage
2 parents 3df5b44 + 65b58de commit e270050

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
7676
*[Note](https://github.com/rust-lang-nursery/rust-clippy/wiki#a-word-of-warning):*
7777
Be sure that Clippy was compiled with the same version of rustc that cargo invokes here!
7878

79+
### Travis CI
80+
81+
You can add Clippy to Travis CI in the same way you use it locally:
82+
83+
```yml
84+
- rust: stable
85+
before_script:
86+
- rustup component add clippy-preview
87+
script:
88+
- cargo clippy
89+
- cargo test
90+
# etc.
91+
```
92+
7993
## Configuration
8094

8195
Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.

0 commit comments

Comments
 (0)