From 26faefcc34b477b49d8eee9134576219b62b3ee5 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Wed, 29 May 2019 20:33:29 -0700 Subject: [PATCH] process: ci: enable clippy checks as part of the build --- .travis.yml | 5 +++++ appveyor.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index e6166edd7..1556c5a12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,12 @@ matrix: - cargo tarpaulin -v --forward --out Xml - bash <(curl -s https://codecov.io/bash) +before_script: + - rustup component add clippy + script: + - cargo clippy --all-targets --all-features + - cargo build - cargo test env: diff --git a/appveyor.yml b/appveyor.yml index 84ade714f..51a344250 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,9 +7,11 @@ install: - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustc -V - cargo -V + - rustup component add clippy build: false test_script: + - cargo clippy - cargo build --target %TARGET% - cargo test --target %TARGET%