This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
84 lines (77 loc) · 1.96 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
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
stages:
- compile
- test
- package
- analyse
- publish
compile:
stage: compile
image: registry.esss.lu.se/ics-docker/maven:openjdk-11
tags:
- docker
script:
- mvn --batch-mode compile
artifacts:
paths:
- target/
- xaos.app.module/target/
- xaos.core.module/target
- xaos.tests.tools.module/target
- xaos.tools.module/target
- xaos.ui.gauge.module/target
- xaos.ui.module/target
- xaos.ui.plot.module/target
expire_in: 1 day
only:
- web
- schedules
test:
stage: test
image: registry.esss.lu.se/ics-docker/maven:openjdk-11
tags:
- docker
script:
- /bin/sh -c "xvfb-run mvn --batch-mode test"
artifacts:
reports:
junit:
- xaos.core.module/target/surefire-reports/TEST-*.xml
- xaos.tools.module/target/surefire-reports/TEST-*.xml
- xaos.ui.module/target/surefire-reports/TEST-*.xml
- xaos.tests.tools.module/target/surefire-reports/TEST-*.xml
only:
- web
- schedules
package:
stage: package
image: registry.esss.lu.se/ics-docker/maven:openjdk-11
tags:
- docker
script:
- echo "${GPG_PRIVATE_KEY}" | gpg --batch --import
- mvn --batch-mode -Dxaos.headless=true -Dgpg.passphrase=${GPG_PASSPHRASE} -Dmaven.test.skip clean install
only:
- web
- schedules
sonar:
stage: analyse
image: registry.esss.lu.se/ics-docker/maven:openjdk-11
tags:
- docker
script:
- mvn --batch-mode sonar:sonar -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.branch=$CI_COMMIT_REF_SLUG
only:
- web@ics-software/XAOS
- schedules@ics-software/XAOS
publish:
stage: publish
image: registry.esss.lu.se/ics-docker/maven:openjdk-11
tags:
- docker
script:
- mvn --batch-mode -Dxaos.headless=true -Dserver.id=ossrh -Dserver.username=${USERNAME} -Dserver.password='${PASSWORD}' clean deploy
only:
- web@ics-software/XAOS
- schedules@ics-software/XAOS