Commit 6363e14f authored by Daniel Martí's avatar Daniel Martí

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.
parent f02e478c
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment