language: android
android:
  components:
    - tools
    - platform-tools
    - build-tools-25.0.2
    - android-24
    - sys-img-armeabi-v7a-android-21
    - extra-android-m2repository

jdk:
  - oraclejdk8

before_script:
  - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  - mksdcard -l e 512M sdcard.img
  - emulator -avd test -no-skin -no-audio -no-window -sdcard sdcard.img &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

script:
  - ./gradlew clean test connectedAndroidTest build --no-daemon

language: android
android:
  components:
    - tools
    - platform-tools
    - build-tools-25.0.2
    - android-24
    - sys-img-armeabi-v7a-android-21
    - extra-android-m2repository

jdk:
  - oraclejdk8

before_script:
  - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  - mksdcard -l e 512M sdcard.img
  - emulator -avd test -no-skin -no-audio -no-window -sdcard sdcard.img &
  - android-wait-for-emulator

script:
  - ./gradlew clean test connectedAndroidTest build --no-daemon

Revert "adding potential solution to wake up the device early"
Revert "adding potential solution to wake up the device early"

This reverts commit c82b0b4401dc7efa4ba11b244faf3ae1604be296.
