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