-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
49 lines (43 loc) · 1.44 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
language: android
dist: xenial
addons:
apt:
packages:
- "python3.5"
- "python3.5-dev"
- "python3-pip"
android:
components:
- extra-google-m2repository
- extra-android-m2repository
- platform-tools
- build-tools-29.0.2
- android-24
- android-26
- sys-img-armeabi-v7a-android-24
# Emulator Management: Create, Start and Wait
before_script:
# install a report about xunit
- python3.5 -m pip install --user xunitparserx
# install the emulator
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
# install Mini Connected
- wget --inet4-only https://hufman.me/MINI_Connected_Classic_v1.1.3_apkpure.com.apk -O connected.apk
- adb install connected.apk
# install an example CarAPI app
- wget --inet4-only https://hufman.me/iHeartRadio_for_Auto_v1.12.2_apkpure.com.apk -O iheartradio.apk
- adb install iheartradio.apk
script:
- echo -en 'travis_fold:start:script.gradle_build\\r'
- bash ./gradlew build
- echo -en 'travis_fold:end:script.gradle_build\\r'
- adb logcat -c
- echo -en 'travis_fold:start:script.gradle_connectedCheck\\r'
- bash ./gradlew connectedCheck
- echo -en 'travis_fold:end:script.gradle_connectedCheck\\r'
- python3.5 buildtools/xunit_summary.py build/outputs/androidTest-results/connected/flavors/*/*.xml
after_script:
- adb logcat -d