From 918cec3cf57d1c3bdabde3ab6ff626c414e01048 Mon Sep 17 00:00:00 2001 From: Runemoro <runemoro@users.noreply.github.com> Date: Fri, 20 Apr 2018 16:40:52 -0400 Subject: [PATCH] Make travis cache gradle dependencies --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 39d14359..800a5015 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,14 @@ notifications: email: false if: tag IS blank +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/ + before_install: chmod +x gradlew install: "./gradlew setupCIWorkspace" script: "./gradlew clean build"