2021-04-21 07:06:56 +00:00
|
|
|
image: "rust:latest"
|
|
|
|
|
2021-04-26 10:34:17 +00:00
|
|
|
variables:
|
|
|
|
CARGO_HOME: $CI_PROJECT_DIR/.cargo
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- target
|
|
|
|
- .cargo
|
|
|
|
|
2021-04-21 07:06:56 +00:00
|
|
|
default:
|
|
|
|
before_script:
|
2021-04-28 06:09:11 +00:00
|
|
|
- rustc --version
|
|
|
|
- cargo version
|
2021-04-21 07:06:56 +00:00
|
|
|
|
2021-04-21 06:57:57 +00:00
|
|
|
stages:
|
2021-04-28 06:09:11 +00:00
|
|
|
- lint
|
2021-04-21 06:57:57 +00:00
|
|
|
- build
|
2021-04-21 07:06:56 +00:00
|
|
|
- test
|
2021-04-28 06:09:11 +00:00
|
|
|
- version
|
2021-04-21 06:57:57 +00:00
|
|
|
|
2021-04-28 06:09:11 +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:
|
2021-04-28 06:09:11 +00:00
|
|
|
- cargo build --features=xdg-mime-backend --locked
|
2021-04-21 07:06:56 +00:00
|
|
|
|
2021-04-28 06:09:11 +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:
|
2021-04-28 06:09:11 +00:00
|
|
|
cargo test --features=xdg-mime-backend --verbose --locked
|
2021-04-21 07:06:56 +00:00
|
|
|
|
2021-04-28 06:09:11 +00:00
|
|
|
cargo-test-infer:
|
2021-04-21 07:06:56 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2021-04-28 06:09:11 +00:00
|
|
|
cargo test --features=infer-backend --verbose --locked
|
|
|
|
|
|
|
|
fif-version:
|
|
|
|
stage: version
|
|
|
|
script:
|
|
|
|
cargo run -- -V
|