Skip to content
Snippets Groups Projects
Commit ad0c35b5 authored by Ryan Harg's avatar Ryan Harg Committed by Ryan Harg
Browse files

Reconfigure gitlab cache

parent 060db0af
No related branches found
No related tags found
1 merge request!130Technical/configure gitlab cache
Pipeline #17874 passed
...@@ -32,6 +32,12 @@ build_ci_image: ...@@ -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: ...@@ -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: ...@@ -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: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment