Skip to content

Commit

Permalink
Tune saving Gradle cache on CI. (#840)
Browse files Browse the repository at this point in the history
Signed-off-by: Yahor Berdnikau <[email protected]>
  • Loading branch information
Tapchicoma authored Aug 20, 2020
1 parent 4f0d6a6 commit c9d1db3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ script:
fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- find $HOME/.gradle -name "*.lock" -type f -delete
- find $HOME/.gradle -name "gc.properties" -type f -delete

# See https://docs.gradle.org/6.6/userguide/dependency_resolution.html#sub:cache_copy
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/caches/modules-2/
- $HOME/.gradle/wrapper/

env:
Expand Down

0 comments on commit c9d1db3

Please sign in to comment.