Commit 3099e82b authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab-ci: refactor out clippy job configuration

parent ecdb130c
......@@ -17,6 +17,11 @@ before_script:
- cargo generate-lockfile $GENERATE_LOCKFILE_ARGS
- cargo fetch --locked
.cargo_clippy: &cargo_clippy
- rustup component add clippy
# - cargo clippy --frozen --tests --all --verbose -- -D warnings
- cargo clippy --frozen --tests --all --verbose
.cargo_build: &cargo_build
- cargo build $CARGO_BUILD_FROZEN --all --verbose
- cargo test --frozen --all --no-run --verbose
......@@ -60,6 +65,12 @@ before_script:
- .cargo-cache
interruptible: true
.cargo_clippy_job: &cargo_clippy_job
stage: build
tags: *rust_tags
script: *cargo_clippy
interruptible: true
.cargo_build_job: &cargo_build_job
stage: build
tags: *rust_tags
......@@ -100,13 +111,9 @@ prepare:cargo-cache-newest:
build:cargo-clippy:
<<:
- *cargo_build_job
- *cargo_clippy_job
- *rust_stable
- *cargo_cache_newest
script:
- rustup component add clippy
#- cargo clippy --frozen --tests --all --verbose -- -D warnings
- cargo clippy --frozen --tests --all --verbose
build:cargo-minimum:
<<:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment