-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
69 lines (57 loc) · 1.63 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
language: android
jdk: oraclejdk8
sudo: false
os: linux
android:
components:
- tools
- platform-tools
- build-tools-30.0.2
- android-30
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-16
- sys-img-armeabi-v7a-android-21
- sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-25
licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
- 'android-sdk-preview-license-.+'
before_install:
- touch $HOME/.android/repositories.cfg
- yes | sdkmanager "platforms;android-30"
- yes | sdkmanager "build-tools;30.0.2"
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
before_script:
- chmod +x gradlew
jobs:
include:
- stage: test
name: "unit_test"
script:
- ./gradlew clean testDebugUnitTestReport
- mv app/build/reports/jacoco/testDebugUnitTestReport app/build/reports/jacoco/jacocoTestDebugUnitTestReport
- mv app/build/reports/jacoco/jacocoTestDebugUnitTestReport/html/index.html app/build/reports/jacoco/jacocoTestDebugUnitTestReport/html/jacocoTestDebugUnitTestReport.xml
- stage: build
name: "build_debug"
script: ./gradlew clean app:assembleDebug
stages:
- test
- build
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- feature
- master