Skip to content

Commit

Permalink
chore: use cleanup-gradle-cache for Travis cache cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Oct 18, 2020
1 parent ff0774d commit 0e0ae20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ script:
#- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
- 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'
- find $HOME/.ivy2 -name "ivydata-*.properties" -print0 | xargs -0 rm -v
- rm -rf $HOME/.ivy2/cache/org.postgresql/
- find $HOME/.sbt -name "*.lock" -print0 | xargs -0 rm -v
# No sense in caching current build artifacts
- rm -rf $HOME/.m2/repository/org/postgresql

Expand Down

0 comments on commit 0e0ae20

Please sign in to comment.