From 65b58de545ae64c3d789084642ed8c42d5acfea2 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Fri, 14 Sep 2018 08:21:14 +0200 Subject: [PATCH] Explain Travis CI usage Closes #2432 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 25dbeaedcba9..e41de0460656 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,20 @@ 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 + before_script: + - rustup component add clippy-preview + script: + - cargo clippy + - 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.