mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-30 00:28:44 +08:00
22 lines
326 B
YAML
22 lines
326 B
YAML
image: "rust:latest"
|
|
|
|
stages:
|
|
- lint
|
|
- test
|
|
|
|
workflow:
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
|
|
|
|
fmt:
|
|
stage: lint
|
|
script:
|
|
- rustup component add rustfmt
|
|
- cargo fmt -- --check
|
|
|
|
cargo-test:
|
|
stage: test
|
|
script:
|
|
- cargo test --locked
|