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