Nicholas Chum | d0163d2 | 2016-07-14 04:25:39 -0400 | [diff] [blame] | 1 | language: android |
| 2 | android: |
| 3 | components: |
| 4 | - tools |
| 5 | - platform-tools |
| 6 | - build-tools-23.0.3 |
| 7 | - android-23 |
| 8 | - extra-android-support |
| 9 | - extra-android-m2repository |
| 10 | - extra-google-m2repository |
| 11 | |
Nicholas Chum | f0a3f25 | 2016-07-14 04:45:41 -0400 | [diff] [blame] | 12 | env: |
| 13 | global: |
| 14 | # install timeout in minutes (2 minutes by default) |
| 15 | - ADB_INSTALL_TIMEOUT=8 |
Nicholas Chum | d0163d2 | 2016-07-14 04:25:39 -0400 | [diff] [blame] | 16 | |
Nicholas Chum | f0a3f25 | 2016-07-14 04:45:41 -0400 | [diff] [blame] | 17 | # Emulator Management: Create, Start and Wait |
| 18 | before_script: |
Nicholas Chum | 73810d2 | 2016-07-14 17:28:15 -0400 | [diff] [blame] | 19 | - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a |
Nicholas Chum | f0a3f25 | 2016-07-14 04:45:41 -0400 | [diff] [blame] | 20 | - emulator -avd test -no-skin -no-audio -no-window & |
| 21 | - android-wait-for-emulator |
| 22 | - adb shell input keyevent 82 & |
| 23 | |
| 24 | script: |
| 25 | - android list target |
| 26 | - ./gradlew connectedAndroidTest |