Commit 8870402a authored by Victor Engmark's avatar Victor Engmark

Install rustfmt before testing

parent c76d0a18
Pipeline #15407231 failed with stages
in 1 minute and 5 seconds
image: rust:latest
stages:
- install
- test
rustfmt:
stage: install
script:
cargo install rustfmt
before_script:
- cargo --version
- rustc --version
- rustfmt --version
.run_template: &run_definition
stage: test
script:
make -C $CI_JOB_NAME CARGO=/usr/local/cargo/bin/cargo run
.test_template: &test_definition
stage: test
script:
make -C $CI_JOB_NAME CARGO=/usr/local/cargo/bin/cargo test
lint:
stage: test
script:
- find . -name '*.rs' | xargs rustfmt
- git diff --exit-code
......
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