Merge pull request #3218 from Hanaasagi/fix-travis-yaml-demo

fix invalid travis-yaml in README
This commit is contained in:
Manish Goregaokar 2018-09-25 07:05:32 -07:00 committed by GitHub
commit cdde22c2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 12 deletions

View File

@ -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