-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.27 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
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- android-21
- sys-img-armeabi-v7a-android-21
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_script:
- android list targets
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
before_install:
- yes | sdkmanager "platforms;android-28"
- chmod +x gradlew
script:
- ./gradlew clean assembleDebug test jacocoTestReportDebug
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb shell svc power stayon true &
- 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 &
- ./gradlew connectedAndroidTest
- adb logcat -d | awk NF
- bash <(curl -s https://codecov.io/bash) -f ./one.irradia.http.tests/build/reports/jacoco/debug/jacoco.xml
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache