Skip to content

Commit 0c9aa75

Browse files
authored
Adding travis, travis file
1 parent dbb1e9d commit 0c9aa75

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.travis.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cache:
1414
env:
1515
global:
1616
- ANDROID_API_LEVEL=26
17-
- EMULATOR_API_LEVEL=26
17+
- EMULATOR_API_LEVEL=22
1818
- ANDROID_BUILD_TOOLS_VERSION=26.0.1
1919
- ANDROID_ABI=armeabi-v7a
2020
- ANDROID_TAG=google_apis
@@ -34,26 +34,24 @@ android:
3434
# Google Play Services
3535
#- extra-google-google_play_services
3636
# Support library
37-
#- extra-android-support
37+
- extra-android-support
3838
# Latest artifacts in local repository
3939
- extra-google-m2repository
4040
- extra-android-m2repository
4141
# Specify at least one system image
4242
#- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
43-
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
44-
43+
- sys-img-$ANDROID_ABI-google_apis-$EMULATOR_API_LEVEL
44+
4545
licenses:
4646
- 'android-sdk-preview-license-52d11cd2'
4747
- 'android-sdk-license-.+'
4848

4949
# Emulator Management: Create, Start and Wait
5050
before_script:
51-
- echo no | android create avd --force -n test -t android-26 --abi armeabi-v7a
52-
- emulator -avd test -no-audio -no-window &
53-
- android-wait-for-emulator
54-
- adb shell input keyevent 82 &
51+
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi google_apis/$ANDROID_ABI
52+
- emulator -avd test -no-window &
53+
- android-wait-for-emulator
54+
- adb shell input keyevent 82 &
5555

5656
script:
57-
./gradlew connectedAndroidTest
58-
59-
57+
- ./gradlew connectedAndroidTest

0 commit comments

Comments
 (0)