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