Browse Source

Add caching to travis

https://docs.travis-ci.com/user/languages/android#Caching
Jozef Hollý 9 years ago
parent
commit
7e7d27505a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .travis.yml

+ 7 - 0
.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/