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 cargo-test: stage: test script: cargo test --verbose clippy: stage: test script: - rustup component add clippy - ./clippy.sh