mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Merge pull request #3218 from Hanaasagi/fix-travis-yaml-demo
fix invalid travis-yaml in README
This commit is contained in:
commit
cdde22c2cc
1 changed files with 14 additions and 12 deletions
26
README.md
26
README.md
|
@ -83,18 +83,20 @@ Be sure that Clippy was compiled with the same version of rustc that cargo invok
|
||||||
You can add Clippy to Travis CI in the same way you use it locally:
|
You can add Clippy to Travis CI in the same way you use it locally:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- rust: stable
|
language: rust
|
||||||
- rust: beta
|
rust:
|
||||||
before_script:
|
- stable
|
||||||
- rustup component add clippy-preview
|
- beta
|
||||||
script:
|
before_script:
|
||||||
- cargo clippy
|
- rustup component add clippy-preview
|
||||||
# if you want the build job to fail when encountering warnings, use
|
script:
|
||||||
- cargo clippy -- -D warnings
|
- cargo clippy
|
||||||
# in order to also check tests and none-default crate features, use
|
# if you want the build job to fail when encountering warnings, use
|
||||||
- cargo clippy --all-targets --all-features -- -D warnings
|
- cargo clippy -- -D warnings
|
||||||
- cargo test
|
# in order to also check tests and none-default crate features, use
|
||||||
# etc.
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
- cargo test
|
||||||
|
# etc.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
Loading…
Reference in a new issue