forked from lightbend/kafka-streams-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
64 lines (56 loc) · 1.4 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
stages:
- build
- test
- pages
- publish
variables:
DOCKER_DRIVER: overlay
# Using internal registry for performance reasons
DOCKER_OPTS: --registry-mirror=$DOCKER_REGISTRY_MIRROR
###########################################################
# TEST #
###########################################################
Documentation:
retry: 2
stage: test
image: linkyard/docker-sbt
cache:
key: sbt
paths:
- cache/
script:
- mkdir -p public
- mkdir -p cache/sbt/boot cache/ivy2
- sbt -Dsbt.boot.directory=./cache/sbt/boot -Dsbt.ivy.home=./cache/ivy2 +doc
- ls -l
- mv target/scala-2.12/api public/api-scala-2.12
- mv target/scala-2.11/api public/api-scala-2.11
artifacts:
paths:
- public/
###########################################################
# PAGE #
###########################################################
pages:
image: node:6
retry: 2
stage: pages
dependencies:
- Documentation
script:
- ls public
artifacts:
paths:
- public
Publish to maven repo:
image: linkyard/docker-sbt
stage: publish
cache:
key: sbt
paths:
- cache/
script:
- mkdir -p cache/sbt/boot cache/ivy2
- sbt -Dsbt.boot.directory=./cache/sbt/boot -Dsbt.ivy.home=./cache/ivy2 +publish
only:
- tags@libs/kafka-streams-scala