21 lines
557 B
YAML
21 lines
557 B
YAML
---
|
|
|
|
stages:
|
|
- test
|
|
|
|
tests:
|
|
stage: test
|
|
image: fedora:latest
|
|
before_script:
|
|
- dnf install -y cargo rustfmt clippy parted-devel clang-devel
|
|
script:
|
|
- cargo build --release
|
|
- cargo fmt --all -- --check
|
|
# Audit fails, reported: https://gitlab.com/CentOS/automotive/src/cvd2img/-/issues/3
|
|
# TODO: re-enable once fixed
|
|
# - cargo install cargo-audit
|
|
# - cargo audit
|
|
# Clippy fails, reported: https://gitlab.com/CentOS/automotive/src/cvd2img/-/issues/2
|
|
# TODO: re-enable once fixed
|
|
# - cargo clippy -- -D warnings
|