Commit aba96e47 authored by Mike Cronce's avatar Mike Cronce
Browse files

.gitlab-ci.yml: Added caching and separate build/test/doc steps

parent bcea400f
Pipeline #741 failed with stages
in 3 minutes and 21 seconds
stages:
- build
- test
- deploy
Build and test Rust code:
variables:
CARGO_HOME: .cargo
Build crate:
stage: build
image: rustlang/rust:nightly
cache:
- key: global
paths:
- .cargo
- target
script:
- cargo update
- cargo clippy
- cargo build
cargo test:
stage: test
image: rustlang/rust:nightly
cache:
- key: global
policy: pull
paths:
- .cargo
- target
script: cargo test
cargo doc:
stage: test
image: rustlang/rust:nightly
script:
- cargo test
- cargo doc
Publish crate:
stage: deploy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment