| language: android |
| android: |
| components: |
| - tools |
| - platform-tools |
| - build-tools-22.0.1 |
| - android-22 |
| - extra-android-support |
| - extra-android-m2repository |
| - extra-google-m2repository |
| |
| # Additional components |
| #- extra-google-google_play_services |
| #- addon-google_apis-google-19 |
| |
| # Specify at least one system image, if you need to run emulator(s) during your tests |
| #- sys-img-armeabi-v7a-android-19 |
| #- sys-img-x86-android-17 |
| env: |
| global: |
| # install timeout in minutes (2 minutes by default) |
| - ADB_INSTALL_TIMEOUT=8 |
| |
| # 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 |
| - ./gradlew connectedAndroidTest |