Skip to content

Commit abf97af

Browse files
committed
Updated travis ci with emulator
1 parent 776eb53 commit abf97af

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,26 @@ before_install:
55
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
66
- chmod +x ./gradlew
77
- cp local.properties.ci local.properties
8+
89
android:
910
components:
1011
- tools
1112
- platform-tools
1213
- build-tools-27.0.3
1314
- android-27
15+
- android-22
16+
- sys-img-armeabi-v7a-android-22
1417
- extra-android-m2repository
1518

1619
licenses:
1720
- android-sdk-license-.+
1821

19-
script:
20-
- ./gradlew test
22+
before_script:
23+
# Create and start emulator
24+
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
25+
- emulator -avd test -no-skin -no-audio -no-window &
26+
- android-wait-for-emulator
27+
- adb shell input keyevent 82 &
28+
29+
script:
30+
- ./gradlew connectedAndroidTest

0 commit comments

Comments
 (0)