-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (39 loc) · 870 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
stages:
- Java build
- Java test
Build:
image: maven:3-openjdk-16
stage: Java build
script:
- cd script
- mvn compile
retry: 1
Spotbugs:
image: maven:3-openjdk-16
stage: Java test
needs: []
script:
- cd script
- mvn install -DskipTests -DskipUiTests -DfailIfNoTests=false
- mvn spotbugs:check -DskipUiTests
retry: 2
Checkstyle:
image: maven:3-openjdk-16
stage: Java test
needs: []
script:
- cd script
- mvn checkstyle:check
retry: 2
Jacoco:
image: maven:3-openjdk-16
stage: Java test
needs: []
script:
- cd script
- mvn jacoco:report-aggregate
- cat $CI_BUILDS_DIR/$CI_PROJECT_PATH/script/report/target/site/jacoco-aggregate/index.html | grep -o '<tfoot>.*</tfoot>'
artifacts:
paths:
- $CI_BUILDS_DIR/$CI_PROJECT_PATH/script/report/target/site/jacoco-aggregate/*
retry: 2