riftenlabs-indexer/.gitlab-ci.yml
Dagur Valberg Johannsson 519c442e34
rename binary
2024-04-02 14:07:30 +02:00

39 lines
636 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