stages: - test - build image: rust:latest before_script: - rustup component add clippy - rustup component add rustfmt clippy: stage: test script: - cargo clippy -- -D warnings rustfmt: stage: test script: - cargo fmt -- --check build: stage: build script: - cargo build --verbose