From 535f4c2b933995065aed069fab5536ea9ee06682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 14 Sep 2018 11:21:27 +0200 Subject: [PATCH] readme: show how to make the travis job fail when using clippy --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e41de0460..79cb35587 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,15 @@ 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. ```