stages:
- check
- build
- deploy
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image: "rust:latest"
format:
stage: check
script:
- rustup component add rustfmt
- cargo fmt
clippy:
stage: check
script:
- rustup component add clippy
- cargo clippy
build:
stage: build
script:
- rustc --version && cargo --version
- cargo build
- cargo test --workspace --verbose
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production