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

Loading…
Cancel
Save