-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
83 lines (72 loc) · 1.59 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
---
include:
- template: Security/Secret-Detection.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
stages:
- check
- test
variables:
MAVEN_OPTS: >
-Dhttps.protocols=TLSv1.2
-Dmaven.repo.local=.m2/repository
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
MAVEN_CLI_OPTS: >
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true
cache:
paths:
- .m2/repository
sast:
stage: check
secret_detection:
stage: check
OSV scanner:
image:
name: golang:latest
stage: check
before_script:
- "go install github.com/google/osv-scanner/cmd/osv-scanner@v1"
script:
- 'PATH="${PATH}:$(go env GOPATH)/bin" osv-scanner -r .'
timeout: 10 minutes
versions:
image:
name: leplusorg/maven-check-versions:1.0.0@sha256:e8f760bb1faf3d3c333d75810e82289fdd275688421cc8bad04cdbbc757ae5a5
script:
- "/opt/maven-check-versions.sh"
stage: check
timeout: 10 minutes
verify:openjdk8:
stage: test
image: maven:3-openjdk-8-slim
script:
- "./mvnw $MAVEN_CLI_OPTS verify"
only:
- master
verify:openjdk11:
stage: test
image: maven:3-openjdk-11-slim
script:
- "./mvnw $MAVEN_CLI_OPTS verify"
only:
- master
verify:openjdk17:
stage: test
image: maven:3-openjdk-17-slim
script:
- "./mvnw $MAVEN_CLI_OPTS verify"
only:
- master
verify:openjdk18:
stage: test
image: maven:3-openjdk-18-slim
script:
- "./mvnw $MAVEN_CLI_OPTS verify"
only:
- master