Verified Commit e1ee21fc authored by Jordan Petridis's avatar Jordan Petridis 🌱

Add rustfmt config to gitlab-ci.

parent eb43bb18
......@@ -27,6 +27,18 @@ stable:test:
# image: "rustlang/rust:nightly"
# <<: *cargo_test
# Configure and run rustfmt on nightly
# Exits and build fails on bad format
rustfmt:
image: "rustlang/rust:nightly"
stage: lint
variables:
CFG_RELEASE_CHANNEL: "nightly"
script:
- rustc --version && cargo --version
- cargo install rustfmt-nightly --force
- cargo fmt --all -- --write-mode=diff
# Configure and run clippy on nightly
clippy:
image: "rustlang/rust:nightly"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment