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