-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (34 loc) · 1000 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
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
image: openjdk:11-jdk
stages:
- compile
- test
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
include:
- template: Security/Secret-Detection.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
compile:
stage: compile
needs: []
script:
- "./gradlew build"
test:
stage: test
needs: ["compile"]
script:
- "./gradlew test"
artifacts:
when: always
reports:
junit: build/test-results/test/**/TEST-*.xml
spotbugs-sast:
stage: test
needs: ["compile"]
secret_detection:
stage: test
needs: [ "compile" ]