Reconfigure gitlab cache

This commit is contained in:
Ryan Harg 2022-01-03 10:59:38 +01:00 committed by Ryan Harg
parent 060db0afdf
commit ad0c35b574
1 changed files with 14 additions and 5 deletions

View File

@ -32,6 +32,12 @@ build_ci_image:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
cache: &global_cache
key: ${CI_PIPELINE_ID}
paths:
- .gradle/wrapper
- .gradle/caches
policy: pull
.gradle-default:
before_script:
@ -41,11 +47,6 @@ build_ci_image:
script:
- echo "Overwrite me"
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
.build:
stage: build
variables:
@ -65,6 +66,9 @@ build_ci_image:
- $apk_file
- $metadata_file
- $output_metadata
cache:
# inherit all global cache settings
<<: *global_cache
test:
extends: .gradle-default
@ -79,6 +83,11 @@ test:
junit: app/build/test-results/test**/TEST-*.xml
paths:
- $JACOCO_XML_LOCATION
cache:
# inherit all global cache settings
<<: *global_cache
# override the policy
policy: pull-push
coverage:
stage: visualize