gitlab-ci: add .gradle to the cache
authorJean Privat <jean@pryen.org>
Tue, 19 Feb 2019 20:30:35 +0000 (15:30 -0500)
committerJean Privat <jean@pryen.org>
Wed, 20 Feb 2019 02:06:42 +0000 (21:06 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

.gitlab-ci.yml

index c209c04..a5b482a 100644 (file)
@@ -3,6 +3,8 @@ image: nitlang/nit-ci
 cache:
   paths:
     - .ccache
+    - .gradle/caches
+    - .gradle/wrapper
   key: "$CI_JOB_NAME"
 
 stages:
@@ -14,16 +16,19 @@ stages:
 before_script:
   - date
   - export CCACHE_DIR=$PWD/.ccache
+  - export GRADLE_USER_HOME=$PWD/.gradle
   - export PATH=$PWD/bin:$PATH
   - pwd
   - ccache -s
   - ccache -M 500M
+  - du -sh .gradle || true
   - type -a nitc nitdoc || true # is there some nit tools?
   - "> status.txt"
 
 after_script:
   - export CCACHE_DIR=$PWD/.ccache
   - ccache -s
+  - du -sh .gradle || true
   - git status --ignored
   - date
   - tail status.txt