forked from jamorham/xDrip-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (66 loc) · 2.29 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: android
sudo: required
dist: trusty
env:
global:
- EMULATOR_API_LEVEL=19
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=20
- AVD_DEBUG='init,avd_config,nand_limits,keys,adb,adbserver,adbclient'
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
- tools
# - build-tools-25.0.0
# - build-tools-26.0.2
# - build-tools-27.0.3
- build-tools-28.0.3
- android-$EMULATOR_API_LEVEL
- android-23
- android-26
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
- extra-google-google_play_services
# - addon-google_apis-google-$EMULATOR_API_LEVEL
- sys-img-$ANDROID_ABI-google_apis-$EMULATOR_API_LEVEL
licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- chmod +x gradlew
- touch $HOME/.android/repositories.cfg
- yes | sdkmanager "platforms;android-29"
before_script:
- android list targets
# - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag google_apis
# - export QEMU_AUDIO_DRV=none && emulator -engine classic -avd test -no-window &
# - sleep 30
# - curl -L -o butler.apk https://bintray.com/linkedin/maven/download_file?file_path=com%2Flinkedin%2Ftestbutler%2Ftest-butler-app%2F1.3.1%2Ftest-butler-app-1.3.1.apk
script:
- nice ./gradlew test -PdisablePreDex
# - sleep 20
# - nice ./gradlew app:assembleAndroidTest -PdisablePreDex
# - sleep 10
# - android-wait-for-emulator
# - adb -e logcat -t 20
# - adb shell settings put global window_animation_scale 0
# - adb shell settings put global transition_animation_scale 0
# - adb shell settings put global animator_duration_scale 0
# - sleep 35
# - adb shell input keyevent 82
# - adb devices
# - ./gradlew app:installDebugAndroidTest -PdisablePreDex
# - adb shell input tap 134 467
# - travis_retry travis_wait nice ./gradlew app:connectedAndroidTest -PdisablePreDex
- ./gradlew assembleRelease
after_failure:
# - adb shell screencap -p | sed 's/\r$//' > failure-screen.png
# - curl -L -o imgur.sh https://github.com/tremby/imgur.sh/raw/master/imgur.sh
# - chmod 700 ./imgur.sh
# - ./imgur.sh failure-screen.png
- cat app/build/reports/tests/testDebugUnitTest/classes/*
- cat app/build/reports/tests/testReleaseUnitTest/classes/*