2023-08-31 21:01:32 +10:00
|
|
|
image: "registry.nickbland.dev/nickbland/rust-docker-ci:latest"
|
2023-08-29 18:16:49 +10:00
|
|
|
|
|
|
|
default:
|
|
|
|
before_script:
|
|
|
|
- rustc --version && cargo --version
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
test-code:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo test --verbose
|
|
|
|
|
|
|
|
lint-code:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo clippy -- -D warnings
|
|
|
|
|
|
|
|
format-code:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo fmt -- --check
|