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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb6e111f16
commit
534101db8b
1 changed files with 43 additions and 16 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue