Skip to content

Commit cdde22c

Browse files
authored
Merge pull request #3218 from Hanaasagi/fix-travis-yaml-demo
fix invalid travis-yaml in README
2 parents e3f7b40 + 2b4d9d5 commit cdde22c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,20 @@ Be sure that Clippy was compiled with the same version of rustc that cargo invok
8383
You can add Clippy to Travis CI in the same way you use it locally:
8484

8585
```yml
86-
- rust: stable
87-
- rust: beta
88-
before_script:
89-
- rustup component add clippy-preview
90-
script:
91-
- cargo clippy
92-
# if you want the build job to fail when encountering warnings, use
93-
- cargo clippy -- -D warnings
94-
# in order to also check tests and none-default crate features, use
95-
- cargo clippy --all-targets --all-features -- -D warnings
96-
- cargo test
97-
# etc.
86+
language: rust
87+
rust:
88+
- stable
89+
- beta
90+
before_script:
91+
- rustup component add clippy-preview
92+
script:
93+
- cargo clippy
94+
# if you want the build job to fail when encountering warnings, use
95+
- cargo clippy -- -D warnings
96+
# in order to also check tests and none-default crate features, use
97+
- cargo clippy --all-targets --all-features -- -D warnings
98+
- cargo test
99+
# etc.
98100
```
99101

100102
## Configuration

0 commit comments

Comments
 (0)