riftenlabs-indexer/.gitlab-ci.yml
2025-07-22 13:08:48 +02:00

48 lines
785 B
YAML

variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
cache:
paths:
- $CARGO_HOME
- target/
build-release:
image: rust:latest
script:
- cargo build --verbose --release
artifacts:
paths:
- target/release/riftenlabs-indexer
expire_in: 30 days
test:
image: rust:latest
script:
- cargo test --verbose --release
format_check:
image: rust:latest
script:
- rustup component add rustfmt
- cargo fmt -- --check
clippy:
image: rust:latest
script:
- rustup component add clippy
- cargo clippy -- -D warnings
linters:
image: python:latest
script:
- ./linters/run_linters.py
build-api-docs:
image: python:latest
script:
- ./contrib/api_doc_generator.py
artifacts:
paths:
- apidoc
expire_in: 30 days