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 - test
- version - 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: clippy:
stage: lint stage: lint
script: script:
@ -26,25 +45,33 @@ clippy:
- cargo clippy --version - cargo clippy --version
- ./clippy.sh ci - ./clippy.sh ci
xdg-backend: # BUILD
stage: build
script:
- cargo build --features=xdg-mime-backend --locked
mime-backend: build-stable:
stage: build extends: .cargo-build
script:
cargo build --features=infer-backend --locked
cargo-test-xdg: build-msrv:
stage: test extends: build-stable
script: image: "rust:1.43.0"
cargo test --features=xdg-mime-backend --verbose --locked
cargo-test-infer: build-nightly:
stage: test extends: build-stable
script: image: "rustlang/rust:nightly"
cargo test --features=infer-backend --verbose --locked
# 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: fif-version:
stage: version stage: version