-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
71 lines (63 loc) · 1.37 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
before_script:
- chmod +x ./gradlew
stages:
- build
- test
- checkstyle
- docgen
- publish
.build_template: &build_template_def
stage: build
artifacts:
expire_in: 4 hours
paths:
- echoframework/build/outputs
build_debug:
<<: *build_template_def
only:
- develop
script:
- ./gradlew :echoframework:assembleDebug --stacktrace
build_release:
<<: *build_template_def
only:
- release
- master
script:
- ./gradlew :echoframework:assembleRelease --stacktrace
unit_test:
stage: test
only:
- release
- master
script:
- ./gradlew :echoframework:testReleaseUnitTest --stacktrace
artifacts:
expire_in: 4 hours
paths:
- echoframework/build/reports/tests
code_analysis:
stage: checkstyle
script:
- ./gradlew :echoframework:lint :echoframework:analyzeCode --stacktrace
artifacts:
expire_in: 4 hours
paths:
- echoframework/build/reports/detekt
pages:
stage: docgen
only:
- release
script:
- ./gradlew :echoframework:clean :echoframework:dokka --stacktrace
- mkdir public
- mv echoframework/build/dokka/* public
artifacts:
paths:
- public
maven_publishing:
stage: publish
only:
- release
script:
- ./gradlew :echoframework:clean :echoframework:install :echoframework:bintrayUpload -PbintrayUser=$bintrayUserVar -PbintrayApiKey=$bintrayApiKeyVar