diff options
author | Eric Bruneton <ebruneton@free.fr> | 2017-11-12 16:09:14 +0100 |
---|---|---|
committer | Eric Bruneton <ebruneton@free.fr> | 2017-11-12 16:09:14 +0100 |
commit | 28619df85fa6a19502acc5422a73963b217022fe (patch) | |
tree | 3a9fa83e9462a31ea29a89ccb6f2a308409170e0 /.gitlab-ci.yml | |
parent | 32b7701cf3aea1c26094abe9b64325ca0bca436b (diff) | |
download | ow2-asm-28619df85fa6a19502acc5422a73963b217022fe.tar.gz |
Cache the Gradle downloaded dependencies between Continuous Integration Jobs.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0ff35bf..deb408b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,15 @@ image: gradle:4.2.0-jdk8-alpine +variables: + # Set the location of the dependency cache to a local directory, so that it + # can be cached between GitLab Continous Integration Jobs. + GRADLE_USER_HOME: '.gradle' + +cache: + path: + # Cache the downloaded dependencies and plugins between builds. + '$GRADLE_USER_HOME' + build: script: gradle build |