This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git
The following commit(s) were added to refs/heads/master by this push:
new c614d41 Remove files that change often from Travis cache, remove
broken files automatically
c614d41 is described below
commit c614d41a277ddff388dcd26fe6d6b8ed167d110e
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Sun Oct 18 12:13:30 2020 +0300
Remove files that change often from Travis cache, remove broken files
automatically
The cache itself is useful, however, there might be two problems:
* Corrupted files might get cached, so the subsequent builds would fail
* Too large cache might slowdown the build
cleanup-gradle-cache solves both issues.
The cache itself is still re-uploaded on every build (see "store build
cache"),
so it might need more investigations.
---
.travis.yml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index d9198e1..0440e9b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,10 +44,8 @@ git:
depth: 10000
#sudo: required
before_cache:
- - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
+ - F=CleanupGradleCache sh -x -c 'curl -O
https://raw.githubusercontent.com/vlsi/cleanup-gradle-cache/v1.x/$F.java &&
javac -J-Xmx128m $F.java && java -Xmx128m $F'
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
-# End .travis.yml