image: "rust:latest" variables: CARGO_HOME: $CI_PROJECT_DIR/.cargo cache: paths: - target - .cargo default: before_script: - rustc --version stages: - build - test build: stage: build script: - cargo build --verbose --locked cargo-test: stage: test script: cargo test --verbose --locked clippy: stage: test script: - rustup component add clippy - ./clippy.sh