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: before_install:
- set -e - set -e
- rustup self update - rustup self update
- rustup component add rustfmt-preview - rustup component add rustfmt-preview clippy-preview
install: install:
- sh ci/install.sh - sh ci/install.sh

View File

@@ -19,6 +19,9 @@ install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/ - curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION% - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - 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 - rustc -Vv
- cargo -V - cargo -V

View File

@@ -5,6 +5,7 @@ set -ex
# TODO This is the "test phase", tweak it as you see fit # TODO This is the "test phase", tweak it as you see fit
main() { main() {
cargo fmt --all -- --check cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cross check --target $TARGET cross check --target $TARGET
cross check --target $TARGET --release cross check --target $TARGET --release