about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md26
1 files changed, 14 insertions, 12 deletions
diff --git a/README.md b/README.md
index eb1de06cce0..100d7649678 100644
--- a/README.md
+++ b/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