image: "rust:latest"
stages:
- test
- comprehensive
cargo-test:
stage: test
script:
- rustc --version && cargo --version - cp Cargo.lock.example Cargo.lock
- cargo test --locked --workspace --verbose --all-features
latest-deps:
stage: comprehensive
script:
- rustc --version && cargo --version - cp Cargo.lock.example Cargo.lock
- cargo update
- cargo test --locked --workspace --verbose --all-features
feature-matrix:
stage: comprehensive
script:
- cp Cargo.lock.example Cargo.lock
- cargo test --locked --workspace --verbose
- cargo test --locked --workspace --verbose --no-default-features --features=base-0
- cargo test --locked --workspace --verbose --no-default-features --features=base-0,path
- cargo test --locked --workspace --verbose --no-default-features --features=base-0,tilde
- cargo test --locked --workspace --verbose --no-default-features --features=full
msrv-1.31:
stage: comprehensive
image: "rust:1.31.0"
script:
- mv Cargo.lock.minimal Cargo.lock
- rustc --version && cargo --version - cargo +1.31.0 test --locked --no-default-features --features=full-msrv-1-31
msrv-1.51:
stage: comprehensive
image: "rust:1.51.0"
script:
- mv Cargo.lock.minimal Cargo.lock
- rustc --version && cargo --version - cargo +1.51.0 test --locked --workspace --all-features