Commit 76fbdcb4 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

dcache-cta: disable coverage reporting

parent ec80e014
stages: stages:
- build - build
- visualize - package
# - visualize
variables: variables:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
...@@ -17,11 +18,12 @@ cache: ...@@ -17,11 +18,12 @@ cache:
- ./.m2/repository - ./.m2/repository
package: package:
stage: build stage: package
image: maven:3.6.3-openjdk-11 image: maven:3.6.3-openjdk-11
script: script:
- mvn $MAVEN_CLI_OPTS clean -DskipTests package - mvn $MAVEN_CLI_OPTS clean -DskipTests package
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths: paths:
- "target/dcache-cta*.tar.gz" - "target/dcache-cta*.tar.gz"
...@@ -39,16 +41,16 @@ test: ...@@ -39,16 +41,16 @@ test:
paths: paths:
- "target/site/jacoco/jacoco.xml" - "target/site/jacoco/jacoco.xml"
coverage-jdk11: #coverage-jdk11:
# Must be in a stage later than test-jdk11's stage. # # Must be in a stage later than test-jdk11's stage.
# The `visualize` stage does not exist by default. # # The `visualize` stage does not exist by default.
# Please define it first, or choose an existing stage like `deploy`. # # Please define it first, or choose an existing stage like `deploy`.
stage: visualize # stage: visualize
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7 # image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
script: # script:
# convert report from jacoco to cobertura, using relative project path # - 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml'
- python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/cobertura.xml # - 'python /opt/source2filename.py target/site/cobertura.xml'
needs: ["test"] # needs: ["test"]
artifacts: # artifacts:
reports: # reports:
cobertura: target/site/cobertura.xml # cobertura: target/site/cobertura.xml
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment