stages:
- Build
- Test
- Integration
image: "rust:latest"
build:
stage: Build
script:
- cargo build
unit tests:
stage: Test
needs: ["build"]
script:
- cargo test --lib
linting:
stage: Test
needs: ["build"]
before_script:
- rustup component add rustfmt
script:
- cargo fmt -- --check
integration tests:
stage: Integration
needs: ["unit tests"]
script:
- cargo test --tests integration --features integration