From 6363e14f10d7e6c66fa59093510ae56dc05f18c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 12 May 2016 15:18:24 +0100 Subject: [PATCH] CI: Remove lock file after every task I tried using after_script, but it seems to not be supported on gitlab.com's public runners. --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9cf22bcab..65895099f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,8 @@ build: done; exit 1; } + # this file changes every time but should not be cached + - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock connectedCheck: variables: @@ -49,11 +51,15 @@ pmd: script: - export GRADLE_USER_HOME=$PWD/.gradle - ./gradlew pmd -PdisablePreDex + # this file changes every time but should not be cached + - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock checkstyle: script: - export GRADLE_USER_HOME=$PWD/.gradle - ./gradlew checkstyle -PdisablePreDex + # this file changes every time but should not be cached + - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock tools: script: