fif/.gitlab-ci.yml
Lynne b3ce5d3d46
numerous CI improvements =u=
- run clippy before all other tasks
- deny on clippy warnings when running in CI
- build and test both xdg and infer backends
- make sure "fif -V" actually works
2021-04-28 16:11:11 +10:00

52 lines
No EOL
797 B
YAML

image: "rust:latest"
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
cache:
paths:
- target
- .cargo
default:
before_script:
- rustc --version
- cargo version
stages:
- lint
- build
- test
- version
clippy:
stage: lint
script:
- rustup component add clippy
- cargo clippy --version
- ./clippy.sh ci
xdg-backend:
stage: build
script:
- cargo build --features=xdg-mime-backend --locked
mime-backend:
stage: build
script:
cargo build --features=infer-backend --locked
cargo-test-xdg:
stage: test
script:
cargo test --features=xdg-mime-backend --verbose --locked
cargo-test-infer:
stage: test
script:
cargo test --features=infer-backend --verbose --locked
fif-version:
stage: version
script:
cargo run -- -V