Skip to content

Commit

Permalink
Travis CI cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingtoncosta committed Jul 11, 2017
1 parent 3e71178 commit e25ee01
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
language: android

jdk:
- oraclejdk8

before_cache:
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
directories:
# Android SDK
- $HOME/android-sdk-dl
- $HOME/android-sdk

# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

# Android build cache (see http://tools.android.com/tech-docs/build-cache)
- $HOME/.android/build-cache

android:
components:
- tools
Expand All @@ -10,10 +31,9 @@ android:

- extra-android-m2repository

env:
- ANDROID_HOME=$HOME/android-sdk

script:
- ./gradlew build connectedCheck

sudo: false

jdk:
- oraclejdk8

0 comments on commit e25ee01

Please sign in to comment.