mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
fix invalid travis-yaml in README
This commit is contained in:
parent
e3f7b40b03
commit
2b4d9d55b8
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:
|
||||
|
||||
```yml
|
||||
- rust: stable
|
||||
- rust: beta
|
||||
before_script:
|
||||
- rustup component add clippy-preview
|
||||
script:
|
||||
- cargo clippy
|
||||
# if you want the build job to fail when encountering warnings, use
|
||||
- cargo clippy -- -D warnings
|
||||
# in order to also check tests and none-default crate features, use
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
- cargo test
|
||||
# etc.
|
||||
language: rust
|
||||
rust:
|
||||
- stable
|
||||
- beta
|
||||
before_script:
|
||||
- rustup component add clippy-preview
|
||||
script:
|
||||
- cargo clippy
|
||||
# if you want the build job to fail when encountering warnings, use
|
||||
- cargo clippy -- -D warnings
|
||||
# in order to also check tests and none-default crate features, use
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
- cargo test
|
||||
# etc.
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
|
Loading…
Reference in a new issue