language: android

android:
  components:
    - build-tools-21.1.2
    - android-21
    - extra-android-support
    - sys-img-armeabi-v7a-android-21

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 &
  - curl http://is.gd/android_wait_for_emulator > android-wait-for-emulator
  - chmod u+x android-wait-for-emulator
  - ./android-wait-for-emulator
  - adb shell input keyevent 82 &
script:
  ./gradlew checkstyle build connectedCheck

language: android

android:
  components:
    - build-tools-21.1.2
    - android-21
    - extra-android-support
    - sys-img-armeabi-v7a-android-21

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:
  ./gradlew checkstyle build connectedCheck
Change Travis-CI configuration to use default android-wait-for-emulator script
Change Travis-CI configuration to use default android-wait-for-emulator script
