summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMatthias Benkard <code@mulk.eu>2023-01-09 09:50:57 +0000
committerMatthias Benkard <code@mulk.eu>2023-01-09 09:50:57 +0000
commit42b186767add346591925c93215ff9d65abc1097 (patch)
tree9984ba00b71f45f2d6a6f928e4644ab12999a067 /.gitlab-ci.yml
parent300d0e16e41b62f7563878ee183e16b4d00248ba (diff)
Add GitLab CI pipeline.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3f0dba2
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,24 @@
+stages:
+ - check
+
+image: maven:3-openjdk-17
+
+verify:
+ stage: check
+ script:
+ - mvn verify
+
+sast:
+ stage: check
+
+cache:
+ key: $CI_JOB_NAME
+ paths:
+ - .m2/repository
+
+variables:
+ MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
+ MAVEN_CLI_OPTS: "--batch-mode --errors"
+
+include:
+ - template: Security/SAST.gitlab-ci.yml