jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject [jmeter] branch master updated: Remove files that change often from Travis cache, remove broken files automatically
Date Sun, 18 Oct 2020 09:50:50 GMT
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/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d34a52  Remove files that change often from Travis cache, remove broken files automatically
5d34a52 is described below

commit 5d34a52104b2451c77a0bda1301bf5541d835136
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
AuthorDate: Sun Oct 18 12:50: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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 5ac1240..b4c4064 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,8 +5,7 @@ install: true
 
 # We can clean the caches via web at https://travis-ci.org/apache/jmeter/caches
 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'
   - rm -rf $HOME/.m2/repository/org/apache/jmeter
 
 cache:


Mime
View raw message