]> git.lizzy.rs Git - rust.git/blobdiff - README.md
Replace another occurrence of "".to_owned()
[rust.git] / README.md
index 25dbeaedcba9ea48e74c64e68d96cfcc38e0fe08..79cb35587f487faa953b4b5d01f7bb267cf60352 100644 (file)
--- a/README.md
+++ b/README.md
@@ -76,6 +76,25 @@ cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
 *[Note](https://github.com/rust-lang-nursery/rust-clippy/wiki#a-word-of-warning):*
 Be sure that Clippy was compiled with the same version of rustc that cargo invokes here!
 
+### Travis CI
+
+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.
+```
+
 ## Configuration
 
 Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.