# Use Rust docker image, see: https://hub.docker.com/_/rust/ image: rust:latest # Defines stages which are to be executed stages: - build - test before_script: - rustc --version - cargo --version # Run `cargo build` for the project with stable Rust run-build: stage: build image: rust:latest script: "cargo build" run-test: stage: test image: rust:latest script: "cargo test"