aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2020-11-30 13:30:46 +0100
committerChristian Kollmann <christian.kollmann@a-sit.at>2020-11-30 13:30:46 +0100
commit1247debcf4807dfdd9d9080d48f546c933a472b1 (patch)
treebe4273a8f4bbe72670df7494db5ab7edf1fa666a
parent7a800070338bec49cf3a4e2e6f76a0778f9eae02 (diff)
downloadNational_eIDAS_Gateway-1247debcf4807dfdd9d9080d48f546c933a472b1.tar.gz
National_eIDAS_Gateway-1247debcf4807dfdd9d9080d48f546c933a472b1.tar.bz2
National_eIDAS_Gateway-1247debcf4807dfdd9d9080d48f546c933a472b1.zip
Add GitLab CI pipeline
-rw-r--r--.gitlab-ci.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..81a4a4dd
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,37 @@
+image: maven:3.6-jdk-8
+
+variables:
+ LC_ALL: "en_US.UTF-8"
+ LANG: "en_US.UTF-8"
+ LANGUAGE: "en_US"
+ LIB_NAME: "ms_specific"
+ MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
+ MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
+ GIT_DEPTH: "2"
+ SECURE_LOG_LEVEL: "debug"
+
+include:
+ - template: Dependency-Scanning.gitlab-ci.yml
+ - template: Security/SAST.gitlab-ci.yml
+ - template: Secret-Detection.gitlab-ci.yml
+
+stages:
+ - assemble
+ - test
+ - package
+ - release
+
+cache:
+ paths:
+ - ".m2/repository"
+
+assemble:
+ stage: assemble
+ except:
+ - tags
+ script: |
+ mvn $MAVEN_CLI_OPTS generate-sources compile test
+ artifacts:
+ when: always
+ reports:
+ junit: "**/target/surefire-reports/TEST-*.xml"