diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 565db23e986158451ec2e16a8f3caac8093705dc..53cf4044ef7d99b57c05c71f1ec3238951213e09 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 + +