Add Clippy to the CI
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user