-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
39 lines (34 loc) · 1.13 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
sudo: false
language: android
env:
global:
# switch glibc to a memory conserving mode
- MALLOC_ARENA_MAX=2
# wait 5 minutes for adb to connect to emulator. Travis-ci cancels a
# stalled build after 10 minutes, so this should be shorter than that so
# there is time for the build to report the error.
- ADB_INSTALL_TIMEOUT=5
android:
components:
- tools
- platform-tools
- extra-android-m2repository
- build-tools-24.0.0
- android-23
licenses:
# only approve the free software licenses
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
script:
# 'assemble' everything and run all checks that do not require a device/emulator
- ./gradlew build
# start the emulator after the build to conserve memory
- android list targets
#- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
#- emulator -avd test -no-skin -no-audio -no-window &
#- android-wait-for-emulator
#- adb shell input keyevent 82 &
# now run the tests that require a device/emulator
#- gradle connectedCheck
after_failure:
- find * -name lint-results.xml | xargs cat