fif/.gitlab-ci.yml
2021-04-26 21:01:35 +10:00

33 lines
No EOL
416 B
YAML

image: "rust:latest"
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
cache:
paths:
- target
- .cargo
default:
before_script:
- rustc --version
stages:
- build
- test
build:
stage: build
script:
- cargo build --verbose --locked
cargo-test:
stage: test
script:
cargo test --verbose --locked
clippy:
stage: test
script:
- rustup component add clippy
- ./clippy.sh