forked from lfuelling/lrkFM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (39 loc) · 877 Bytes
/
.gitlab-ci.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
image: lerk/android-ci
stages:
- build
- test
- artifacts
before_script:
- ./gradlew clean
build_no_tests:
stage: build
script:
- ./gradlew assemble
build_with_tests_debug:
stage: test
script:
- ./gradlew build
- ./gradlew jacocoTestDebugUnitTestReport
- cat app/build/reports/jacoco/jacocoTestDebugUnitTestReport/html/index.html
build_with_tests_release:
stage: test
script:
- ./gradlew build
- ./gradlew jacocoTestReleaseUnitTestReport
- cat app/build/reports/jacoco/jacocoTestReleaseUnitTestReport/html/index.html
build_debug_artifacts:
stage: artifacts
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/app-debug.apk
build_signed_artifacts:
stage: artifacts
script:
- ./gradlew assembleRelease
artifacts:
paths:
- app/app-release.apk
only:
- tags