29 lines
388 B
YAML
29 lines
388 B
YAML
image: "archlinux:latest"
|
|
|
|
before_script:
|
|
- pacman -Syu --needed --noconfirm rust gcc cargo-audit pkgconf
|
|
|
|
stages:
|
|
- lint
|
|
- test
|
|
|
|
format:
|
|
stage: lint
|
|
script:
|
|
- cargo fmt --all -- --check
|
|
|
|
clippy:
|
|
stage: lint
|
|
script:
|
|
- cargo clippy --all -- -D warnings
|
|
|
|
audit:
|
|
stage: lint
|
|
script:
|
|
- cargo audit
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- cargo test --all --release
|