fif/.gitlab-ci.yml

33 lines
416 B
YAML
Raw Normal View History

2021-04-21 07:06:56 +00:00
image: "rust:latest"
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
cache:
paths:
- target
- .cargo
2021-04-21 07:06:56 +00:00
default:
before_script:
- rustc --version
2021-04-21 06:57:57 +00:00
stages:
- build
2021-04-21 07:06:56 +00:00
- test
2021-04-21 06:57:57 +00:00
2021-04-21 07:06:56 +00:00
build:
2021-04-21 06:57:57 +00:00
stage: build
script:
2021-04-26 11:01:09 +00:00
- cargo build --verbose --locked
2021-04-21 07:06:56 +00:00
cargo-test:
stage: test
script:
2021-04-26 11:01:09 +00:00
cargo test --verbose --locked
2021-04-21 07:06:56 +00:00
clippy:
stage: test
script:
- rustup component add clippy
- ./clippy.sh