language: android
jdk: oraclejdk8
env:
  matrix:
    - ANDROID_TARGET=android-23 ANDROID_ABI=x86
android:
  components:
  - platform-tools
  - tools
  - build-tools-27.0.2
  - android-23
  - extra-google-m2repository
  - extra-android-m2repository
  - extra-google-google_play_services
  
before_install:
- yes | sdkmanager "platforms;android-27"

script:
  # Unit Test
  - ./gradlew -Pcoverage test jacocoTestReport

after_success:
  - bash <(curl -s https://codecov.io/bash)
language: android
jdk: oraclejdk8
env:
  matrix:
    - ANDROID_TARGET=android-23 ANDROID_ABI=x86
android:
  components:
  - platform-tools
  - tools
  - build-tools-27.0.2
  - android-23
  - extra-google-m2repository
  - extra-android-m2repository
  - extra-google-google_play_services
  
before_install:
- yes | sdkmanager "platforms;android-27"

script:
  # Unit Test
  - ./gradlew -Pcoverage test jacocoTestReport

after_success:
  - bash <(curl -s https://codecov.io/bash)

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/
    - $HOME/.android/build-cache
Improve Travis build speed by storing build cache
Improve Travis build speed by storing build cache
