vastly improved CI - now builds/tests all feature configurations, against MSRV, stable, and nightly!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lynne Megido 2021-04-28 20:14:52 +10:00
parent cb6e111f16
commit 534101db8b
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -19,6 +19,25 @@ stages:
- test
- version
# TEMPLATE
.cargo-build:
stage: build
parallel:
matrix:
- FEATURES: [ 'xdg-mime-backend', 'infer-backend', 'multi-threaded xdg-mime-backend',
'multi-threaded infer-backend' ]
script:
cargo build --no-default-features --locked --features="$FEATURES"
.cargo-test:
stage: test
parallel:
matrix:
- FEATURES: [ 'xdg-mime-backend', 'infer-backend', 'multi-threaded xdg-mime-backend',
'multi-threaded infer-backend' ]
script:
cargo test --no-default-features --locked --verbose --features="$FEATURES"
clippy:
stage: lint
script:
@ -26,25 +45,33 @@ clippy:
- cargo clippy --version
- ./clippy.sh ci
xdg-backend:
stage: build
script:
- cargo build --features=xdg-mime-backend --locked
# BUILD
mime-backend:
stage: build
script:
cargo build --features=infer-backend --locked
build-stable:
extends: .cargo-build
cargo-test-xdg:
stage: test
script:
cargo test --features=xdg-mime-backend --verbose --locked
build-msrv:
extends: build-stable
image: "rust:1.43.0"
cargo-test-infer:
stage: test
script:
cargo test --features=infer-backend --verbose --locked
build-nightly:
extends: build-stable
image: "rustlang/rust:nightly"
# TEST
test-stable:
extends: .cargo-test
test-msrv:
extends: test-stable
image: "rust:1.43.0"
test-nightly:
extends: test-stable
image: "rustlang/rust:nightly"
# VERSION
fif-version:
stage: version