Only run clippy and rustfmt on CI if the component is available
This commit is contained in:
parent
8cb8db4e24
commit
801114a68d
|
@ -129,16 +129,19 @@ matrix:
|
||||||
- name: "rustfmt"
|
- name: "rustfmt"
|
||||||
install: true
|
install: true
|
||||||
rust: nightly
|
rust: nightly
|
||||||
before_script: rustup component add rustfmt-preview
|
script: |
|
||||||
script: cargo fmt --all -- --check
|
if rustup component add rustfmt-preview ; then
|
||||||
|
cargo fmt --all -- --check
|
||||||
|
fi
|
||||||
- name: "clippy"
|
- name: "clippy"
|
||||||
install: true
|
install: true
|
||||||
rust: nightly
|
rust: nightly
|
||||||
# allow(clippy::all) fails in the syscrate, so we can't use --all here:
|
# allow(clippy::all) fails in the syscrate, so we can't use --all here:
|
||||||
script: |
|
script: |
|
||||||
if rustup component add clippy-preview; then
|
if rustup component add clippy-preview ; then
|
||||||
cargo clippy -p jemalloc-sys -- -D clippy::pedantic
|
cargo clippy -p jemalloc-sys -- -D clippy::pedantic
|
||||||
cargo clippy -p jemallocator -- -D clippy::pedantic
|
cargo clippy -p jemallocator -- -D clippy::pedantic
|
||||||
|
cargo clippy -p jemallocator-global -- -D clippy::pedantic
|
||||||
cargo clippy -p jemalloc-ctl -- -D clippy::pedantic
|
cargo clippy -p jemalloc-ctl -- -D clippy::pedantic
|
||||||
fi
|
fi
|
||||||
- name: "Shellcheck"
|
- name: "Shellcheck"
|
||||||
|
|
Loading…
Reference in New Issue