Commit 9ac3f04b authored by Ben Boeckel's avatar Ben Boeckel

gitlab-ci: test the new `config` feature

parent 6507a350
Pipeline #148687 passed with stages
in 10 minutes and 18 seconds
......@@ -15,14 +15,14 @@ before_script:
- cargo fetch --locked
.cargo_build: &cargo_build
- cargo build --frozen --all --verbose
- cargo test --frozen --all --no-run --verbose
- cargo build --frozen $CARGO_FEATURES --all --verbose
- cargo test --frozen $CARGO_FEATURES --all --no-run --verbose
.cargo_test: &cargo_test
- apt-get install -yqq --no-install-recommends git bind9-host
- git config --global user.name "Ghostflow Testing"
- git config --global user.email "ghostflow@example.invalid"
- cargo test --frozen --all --verbose
- cargo test --frozen $CARGO_FEATURES --all --verbose
.rust_minimum: &rust_minimum
image: "rust:1.36.0"
......@@ -41,6 +41,24 @@ before_script:
image: "rustlang/rust:nightly"
.rust_minimum_features: &rust_minimum_features
extends: .rust_minimum
variables:
CARGO_FEATURES: --all-features
.rust_stable_features: &rust_stable_features
extends: .rust_stable
variables:
CARGO_FEATURES: --all-features
.rust_nightly_features: &rust_nightly_features
extends: .rust_nightly
variables:
CARGO_FEATURES: --all-features
.cargo_fetch_job: &cargo_fetch_job
stage: prepare
tags: *rust_tags
......@@ -109,7 +127,16 @@ build:cargo-clippy:
- *cargo_cache_newest
script:
- rustup component add clippy
- cargo clippy --frozen --tests --all --verbose -- -D warnings
- cargo clippy --frozen $CARGO_FEATURES --tests --all --verbose -- -D warnings
build:cargo-clippy-features:
<<:
- *cargo_build_job
- *rust_stable_features
- *cargo_cache_newest
script:
- rustup component add clippy
- cargo clippy --frozen $CARGO_FEATURES --tests --all --verbose -- -D warnings
build:cargo-minimum:
<<:
......@@ -174,6 +201,69 @@ test:cargo-mindeps:
needs:
- build:cargo-mindeps
build:cargo-minimum-features:
<<:
- *cargo_build_job
- *rust_minimum_features
- *cargo_cache_newest
test:cargo-minimum-features:
<<:
- *cargo_test_job
- *rust_minimum_features
dependencies:
- build:cargo-minimum-features
needs:
- build:cargo-minimum-features
build:cargo-stable-features:
<<:
- *cargo_build_job
- *rust_stable_features
- *cargo_cache_newest
test:cargo-stable-features:
<<:
- *cargo_test_job
- *rust_stable_features
dependencies:
- build:cargo-stable-features
needs:
- build:cargo-stable-features
build:cargo-nightly-features:
<<:
- *cargo_build_job
- *rust_nightly_features
- *cargo_cache_newest
test:cargo-nightly-features:
<<:
- *cargo_test_job
- *rust_nightly_features
dependencies:
- build:cargo-nightly-features
needs:
- build:cargo-nightly-features
build:cargo-mindeps-features:
<<:
- *cargo_build_job
- *rust_minimum_features
dependencies:
- prepare:cargo-cache-mindeps
needs:
- prepare:cargo-cache-mindeps
test:cargo-mindeps-features:
<<:
- *cargo_test_job
- *rust_minimum_features
dependencies:
- build:cargo-mindeps-features
needs:
- build:cargo-mindeps-features
prepare:git:
image: "rust:latest"
......@@ -207,7 +297,7 @@ test:git-master:
- apt-get install -yqq --no-install-recommends bind9-host
- git config --global user.name "Ghostflow Testing"
- git config --global user.email "ghostflow@example.invalid"
- PATH=$PWD/git/root/bin:$PATH cargo test --frozen --all --verbose
- PATH=$PWD/git/root/bin:$PATH cargo test --frozen $CARGO_FEATURES --all --verbose
dependencies:
- prepare:git
- build:cargo-stable
......
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