Commit 91482325 authored by Ben Boeckel's avatar Ben Boeckel

gitlab-ci: refactor out clippy job configuration

parent 52c4b873
......@@ -14,6 +14,10 @@ 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_build: &cargo_build
- cargo build $CARGO_BUILD_FROZEN --all --verbose
- cargo test --frozen --all --no-run --verbose
......@@ -60,6 +64,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
......@@ -108,12 +118,9 @@ prepare:cargo-cache-mindeps:
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
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