-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
84 lines (79 loc) · 1.41 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
76
77
78
79
80
81
82
83
84
image: gradle:jdk11
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- build
- pages
- deploy
cache:
paths:
- "build"
- "out"
- ".gradle"
shared_build:
stage: build
script: gradle :shared:jar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
- out
artifacts:
paths:
- shared/build/libs/*.jar
expire_in: 1 week
server_build:
stage: build
script: gradle :server:shadowJar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
- out
artifacts:
paths:
- server/build/libs/*.jar
expire_in: 1 week
client_build:
stage: build
script: gradle :client:jar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
- out
artifacts:
paths:
- client/build/libs/*.jar
expire_in: 1 week
pages:
stage: pages
script:
- "gradle dokka"
- "mv shared/build/javadoc public/shared"
- "ls public/shared"
- "mv client/build/javadoc public/client"
- "ls public/client"
artifacts:
paths:
- "public"
only:
- master
deploy:
stage: deploy
script: echo Automatic bintray deploy is coming soon just want to have a deploy job
only:
- master
#bintray:
# stage: deploy
# script: gradle bintrayUpload
# only:
# - master