Browse Source

Reconfigure gitlab cache

technical/update-jvmTarget-version
Ryan Harg 3 years ago committed by Ryan Harg
parent
commit
ad0c35b574
  1. 19
      .gitlab-ci.yml

19
.gitlab-ci.yml

@ -32,6 +32,12 @@ build_ci_image: @@ -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: @@ -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: @@ -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: @@ -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

Loading…
Cancel
Save