gitlab ci improvements: cache target
& .cargo
, separate test and build
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d6974b4959
commit
b80c510d48
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue