From 3bbb4fe4712752f8604d2c1dee346400077ff009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Garc=C3=ADa=20Fern=C3=A1ndez?= Date: Wed, 19 Jan 2022 23:51:49 +0100 Subject: [PATCH] feat: Add gitlab-ci pipeline --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..04192f6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +variables: + GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task + MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" + +image: maven:3.8.4-jdk-11 + +stages: + - build + - test + +cache: + key: "${CI_JOB_NAME}" + paths: + - .m2/repository/ + - target/ + +build: + stage: build + script: + - mvn clean compile + +test: + stage: test + script: + - mvn verify -Pall-tests + artifacts: + when: always + reports: + junit: + - target/surefire-reports/TEST-*.xml + - target/failsafe-reports/TEST-*.xml