Try caching

This commit is contained in:
Felix Krull 2019-05-22 13:09:56 +02:00 committed by Colin Walters
parent 0d33525815
commit b218a5b6c5
1 changed files with 21 additions and 0 deletions

View File

@ -4,6 +4,7 @@ variables:
CARGO_TARGET_DIR: target CARGO_TARGET_DIR: target
# --all-features # --all-features
CURRENT_FEATURES: --features v2018_9 CURRENT_FEATURES: --features v2018_9
CARGO_HOME: ${CI_PROJECT_DIR}/cargo
before_script: before_script:
- echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list - echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
@ -19,6 +20,10 @@ ostree-sys:
stage: build stage: build
script: script:
- cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES} - cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES}
cache:
paths:
- cargo/
- target/
publish_ostree-sys: publish_ostree-sys:
stage: publish stage: publish
@ -31,16 +36,28 @@ ostree:
stage: build stage: build
script: script:
- cargo test --verbose ${CURRENT_FEATURES} - cargo test --verbose ${CURRENT_FEATURES}
cache:
paths:
- cargo/
- target/
ostree_default_features: ostree_default_features:
stage: build stage: build
script: script:
- cargo test --verbose - cargo test --verbose
cache:
paths:
- cargo/
- target/
ostree_all_features: ostree_all_features:
stage: build stage: build
script: script:
- cargo test --verbose --all-features - cargo test --verbose --all-features
cache:
paths:
- cargo/
- target/
allow_failure: true allow_failure: true
ostree_nightly: ostree_nightly:
@ -48,6 +65,10 @@ ostree_nightly:
image: rustlang/rust:nightly image: rustlang/rust:nightly
script: script:
- cargo test --verbose ${CURRENT_FEATURES} - cargo test --verbose ${CURRENT_FEATURES}
cache:
paths:
- cargo/
- target/
publish_ostree: publish_ostree:
stage: publish stage: publish