-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
67 lines (45 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
branches:
only:
- master
language: android
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- build-tools-26.0.2
- build-tools-24.0.2
- build-tools-22.0.1
- android-22
- android-24
- android-26
- extra
- addon
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
before_install:
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
- echo yes | sdkmanager "build-tools;28.0.3" > /dev/null
- echo yes | sdkmanager "build-tools;26.0.2" > /dev/null
- echo yes | sdkmanager "build-tools;24.0.2" > /dev/null
- echo yes | sdkmanager "build-tools;22.0.1" > /dev/null
- adb logcat > logcat.log &
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
# Unlock screen
- adb shell input keyevent 82
env:
- TEST_DIR=HelloMapAndroid
- TEST_DIR=AdvancedMapAndroid
- TEST_DIR=CartoMapAndroid
script: cd $TEST_DIR && ./gradlew build connectedCheck
after_failure:
- cat logcat.log