Add Clippy to the CI

This commit is contained in:
Roey Darwish Dror
2018-09-14 13:52:38 +03:00
parent 669497ef5e
commit 1d5c69ea53
3 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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