-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
51 lines (46 loc) · 972 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
47
48
49
50
51
variables:
CLJ_CONFIG: "./config/ci"
cache:
paths:
- .m2/repository
stages:
- build-and-test
- release
build:
stage: build-and-test
image: clojure:tools-deps-1.9.0.391-alpine
tags:
- docker
before_script:
- apk --update add make nodejs-npm
script:
- make compile
test:
stage: build-and-test
image: clojure:tools-deps-1.9.0.391-alpine
tags:
- docker
before_script:
- apk --update add make nodejs-npm yarn
- yarn add websocket
script:
- make test
release:
stage: release
image: maven:3-jdk-8-alpine
tags:
- docker
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
before_script:
- apk --update add make gettext
script:
- export RELEASE_VERSION=$CI_COMMIT_TAG
- envsubst '${RELEASE_VERSION}' <pom.xml >pomv.xml && mv pomv.xml pom.xml
- make mvn-deploy
only:
- tags
artifacts:
paths:
- pom.xml