-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
75 lines (67 loc) · 1.19 KB
/
.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
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
75
default:
image: openjdk:8-jdk
stages:
- build
- test
- documentation
- deploy
build:
stage: build
script:
- ./gradlew assemble
artifacts:
name: build-artifacts
expire_in: 1d
paths:
- build
- livingdoc-*/build
test project:
stage: test
script:
- ./gradlew check -x detekt -x spotlessCheck
- ./gradlew codeCoverageReport
- cat build/reports/jacoco/index.html
artifacts:
name: test-artifacts
expire_in: 1d
paths:
- build/reports/jacoco
- livingdoc-*/build/reports/tests/test
reports:
junit:
- livingdoc-*/build/test-results/test/TEST-*.xml
lint project:
stage: test
script:
- ./gradlew spotlessCheck
- ./gradlew detekt
generate documentation:
stage: test
script:
- ./gradlew aggregatedDokka
dependencies:
- build
artifacts:
name: documentation-artifacts
expire_in: 1d
paths:
- build/dokka
pages:
stage: deploy
script:
- mv build/dokka public
dependencies:
- generate documentation
artifacts:
paths:
- public
only:
- master
publish:
stage: deploy
script:
- ./gradlew publish
dependencies:
- build
only:
- master