From f552c38fdcc4900a401bccbfc20ee5dc087b7642 Mon Sep 17 00:00:00 2001 From: Riegel <alexander.riegel@hft-stuttgart.de> Date: Mon, 18 Nov 2024 10:27:58 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 565db23..53cf404 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,29 @@ image: maven:3.8.6-eclipse-temurin-17 -build: +stages: + - test + - build + +code-coverage: + stage: test script: - cd CityDoctorParent - mvn verify -U coverage: /Total.*?([0-9]{1,3})%/ + artifacts: + when: always + paths: + - CityDoctorParent/target/site/ + +build: + stage: build + script: + - cd CityDoctorParent + - mvn verify -U artifacts: when: always reports: junit: - CityDoctorParent/**/target/surefire-reports/TEST-*.xml + + -- GitLab