sudo: false

language: android
jdk: oraclejdk8

cache:
  directories:
    - $HOME/.m2
    - $HOME/.gradle

env:
  global:
    - CI=travis
    - ADB_INSTALL_TIMEOUT=10

android:
  components:
    - tools
    - build-tools-23.0.3
    - android-23
    - extra-android-m2repository
    - sys-img-armeabi-v7a-android-21

before_install:
  - chmod +x gradlew
 
# Emulator Management: Create, Start and Wait
before_script:
  - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  - emulator -avd test -no-skin -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

script:
  - android list target
  - sh build.sh
sudo: false

language: android
jdk: oraclejdk8

cache:
  directories:
    - $HOME/.m2
    - $HOME/.gradle

env:
  global:
    - CI=travis
    - ADB_INSTALL_TIMEOUT=10

android:
  components:
    - tools
    - build-tools-23.0.3
    - android-23
    - extra-android-m2repository
    - sys-img-armeabi-v7a-android-17

before_install:
  - chmod +x gradlew
 
# Emulator Management: Create, Start and Wait
before_script:
  - echo no | android create avd --force -n test -t android-17 --abi armeabi-v7a
  - emulator -avd test -no-skin -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

script:
  - android list target
  - sh build.sh
Use Android 17 emulator to speed up build on Travis
Use Android 17 emulator to speed up build on Travis
