fif/.gitlab-ci.yml

52 lines
797 B
YAML
Raw Normal View History

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