From b2a19511a64a3b74dc7c54acec9638d2d9127a65 Mon Sep 17 00:00:00 2001 From: Riegel Date: Mon, 18 Nov 2024 11:07:02 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 53cf4044..76c50d24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,26 +4,35 @@ stages: - test - build +junit-tests: + stage: test + script: + - cd CityDoctorParent + - mvn test + artifacts: + when: always + reports: + junit: + - CityDoctorParent/**/target/surefire-reports/TEST-*.xml + code-coverage: stage: test script: - cd CityDoctorParent - - mvn verify -U + - mvn test coverage: /Total.*?([0-9]{1,3})%/ artifacts: when: always - paths: - - CityDoctorParent/target/site/ + reports: + coverage_report: + coverage_format: jacoco + path: CityDoctorParent/target/site/jacoco-aggregate/jacoco-resources/jacoco.xml build: stage: build script: - cd CityDoctorParent - - mvn verify -U - artifacts: - when: always - reports: - junit: - - CityDoctorParent/**/target/surefire-reports/TEST-*.xml + - mvn verify -U -Dmaven.test.skip=true + -- GitLab