-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
57 lines (51 loc) · 933 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
52
53
54
55
56
cache:
key: "maven3"
paths:
- .m2/repository
stages:
- package
- test
- java_quality
maven_build:
image: maven:3-jdk-11
stage: package
script: mvn clean package
only:
- master
- v1.0.0
- v1.0.1
- v1.0.2
- v1.0.3
- stage
artifacts:
paths:
- /target/*.jar
test_coverage:
image: maven:3-jdk-11
stage: test
only:
- master
- v1.0.0
- v1.0.1
- v1.0.2
- v1.0.3
- stage
script:
- mvn clean install
- cat aggregator/target/site/jacoco-aggregate/index.html
artifacts:
paths:
- aggregator/target/site/jacoco-aggregate/index.html
java_lint:
image: maven:3-jdk-11
stage: java_quality
script:
- mvn -Dmaven.repo.local=/root/.m2/repository clean install -DskipTests=true -B
- mvn -Dmaven.repo.local=/root/.m2/repository pmd:check -B
only:
- master
- v1.0.0
- v1.0.1
- v1.0.2
- v1.0.3
- stage