# This file is a template, and might need editing before it works on your project. # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/rust/tags/ image: "rust:latest" stages: - test - build # Use cargo to test the project test: stage: test script: - cargo test --all --verbose cache: key: cargo_cache paths: - target/ build: stage: build only: - master - tags script: - cargo build --release cache: key: cargo_cache paths: - target/ artifacts: expire_in: 30 days paths: - target/release/summer - target/release/summer.*