From 7e7d27505a1530e8efba099ba72979318f68bd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Holl=C3=BD?= Date: Sat, 9 Apr 2016 17:57:01 +0200 Subject: [PATCH] Add caching to travis https://docs.travis-ci.com/user/languages/android#Caching --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index ac29f83009..02195d586e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,3 +17,10 @@ before_script: #Build, and run tests script: "./gradlew clean assembleDebug testDebugUnitTest" sudo: false + +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/