Skip to content
Snippets Groups Projects

Legg til code coverage-rapport på Gitlab Pages

Merged Jakob Karevold Grønhaug requested to merge jacoco-report-pages into main
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -3,6 +3,7 @@ image: maven:3-eclipse-temurin-17
@@ -3,6 +3,7 @@ image: maven:3-eclipse-temurin-17
stages: # List of stages for jobs, and their order of execution
stages: # List of stages for jobs, and their order of execution
- build
- build
- test
- test
 
- deploy
build-job:
build-job:
stage: build
stage: build
@@ -13,3 +14,17 @@ test-job:
@@ -13,3 +14,17 @@ test-job:
stage: test
stage: test
script:
script:
- mvn verify
- mvn verify
 
 
code-coverage-pages:
 
stage: deploy
 
script:
 
- mvn clean verify
 
- mkdir .public
 
- cp -r ./target/site/jacoco/* .public
 
- rm -rf public
 
- mv .public public
 
artifacts:
 
paths:
 
- public
 
only:
 
- web
Loading