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"
|
image: "rust:latest"
|
||||||
|
|
||||||
|
variables:
|
||||||
|
CARGO_HOME: $CI_PROJECT_DIR/.cargo
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- target
|
||||||
|
- .cargo
|
||||||
|
|
||||||
default:
|
default:
|
||||||
before_script:
|
before_script:
|
||||||
- rustc --version
|
- rustc --version
|
||||||
|
@ -12,7 +20,6 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
- cargo test --verbose
|
|
||||||
|
|
||||||
cargo-test:
|
cargo-test:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
Loading…
Reference in a new issue