Skip to content

Commit 7344401

Browse files
committed
added some extra stuff for android emulators.
1 parent cbf18f5 commit 7344401

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,22 @@ android:
2020

2121
# Specify at least one system image,
2222
# if you need to run emulator(s) during your tests
23-
- sys-img-armeabi-v7a-android-19
24-
- sys-img-x86-android-17
23+
# - sys-img-armeabi-v7a-android-19
24+
- sys-img-x86-android-21
25+
26+
27+
env:
28+
global:
29+
# install timeout in minutes (2 minutes by default)
30+
- ADB_INSTALL_TIMEOUT=8
31+
32+
# Emulator Management: Create, Start and Wait
33+
before_script:
34+
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
35+
- emulator -avd test -no-skin -no-audio -no-window &
36+
- android-wait-for-emulator
37+
- adb shell input keyevent 82 &
38+
39+
script:
40+
- android list target
41+
- ./gradlew connectedAndroidTest

0 commit comments

Comments
 (0)