gitlab ci improvements: cache `target` & `.cargo`, separate test and build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lynne Megido 2021-04-26 20:34:17 +10:00
parent d6974b4959
commit b80c510d48
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -1,5 +1,13 @@
image: "rust:latest"
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
cache:
paths:
- target
- .cargo
default:
before_script:
- rustc --version
@ -12,7 +20,6 @@ build:
stage: build
script:
- cargo build --verbose
- cargo test --verbose
cargo-test:
stage: test