-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (37 loc) · 823 Bytes
/
.gitlab-ci.yml
File metadata and controls
41 lines (37 loc) · 823 Bytes
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
before_script:
- javac -version
stages:
- test
- deploy
maven_test:
stage: test
script:
- "mvn test"
- "cat target/site/jacoco/index.html"
artifacts:
expire_in: 1 week
paths:
- target/site/jacoco/
coverage:
stage: deploy
script:
- git clone git@git.sg-o.de:root/miIOMapClient.wiki.git
- mkdir -p report
- mv target/site/jacoco/jacoco.csv report/jacoco.csv
- csv2md --pretty report/jacoco.csv > miIOMapClient.wiki/report.md
- cd miIOMapClient.wiki/
- git add .
- git diff-index --quiet HEAD || git commit -a -m "Updated coverage report"
- git push origin master
only:
- master
maven_deploy:
stage: deploy
script:
- "mvn deploy"
artifacts:
expire_in: 1 week
paths:
- target/*.jar
- target/*.asc
- target/*.pom