From 1d5c69ea53132bdf814fbf452613fb70485316e1 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Fri, 14 Sep 2018 13:52:38 +0300 Subject: [PATCH] Add Clippy to the CI --- .travis.yml | 2 +- appveyor.yml | 3 +++ ci/script.sh | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5b67297f..b76be3a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ matrix: before_install: - set -e - rustup self update - - rustup component add rustfmt-preview + - rustup component add rustfmt-preview clippy-preview install: - sh ci/install.sh diff --git a/appveyor.yml b/appveyor.yml index e7fd43ce..fadd3d4d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,6 +19,9 @@ install: - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - rustup component add rustfmt-preview clippy-preview + - cargo fmt --all -- --check + - cargo clippy --all-targets --all-features -- -D warnings - rustc -Vv - cargo -V diff --git a/ci/script.sh b/ci/script.sh index 685b5f93..ee3383d1 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -5,6 +5,7 @@ set -ex # TODO This is the "test phase", tweak it as you see fit main() { cargo fmt --all -- --check + cargo clippy --all-targets --all-features -- -D warnings cross check --target $TARGET cross check --target $TARGET --release