Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
pipelines
Commits
76fbdcb4
Commit
76fbdcb4
authored
Oct 13, 2021
by
Tigran Mkrtchyan
☕
Browse files
dcache-cta: disable coverage reporting
parent
ec80e014
Changes
1
Show whitespace changes
Inline
Side-by-side
dcache-cta-build.yaml
View file @
76fbdcb4
stages
:
-
build
-
visualize
-
package
# - visualize
variables
:
MAVEN_CLI_OPTS
:
"
--batch-mode
--errors
--fail-at-end
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true"
...
...
@@ -17,11 +18,12 @@ cache:
-
./.m2/repository
package
:
stage
:
build
stage
:
package
image
:
maven:3.6.3-openjdk-11
script
:
-
mvn $MAVEN_CLI_OPTS clean -DskipTests package
artifacts
:
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths
:
-
"
target/dcache-cta*.tar.gz"
...
...
@@ -39,16 +41,16 @@ test:
paths
:
-
"
target/site/jacoco/jacoco.xml"
coverage-jdk11
:
# Must be in a stage later than test-jdk11's stage.
# The `visualize` stage does not exist by default.
# Please define it first, or choose an existing stage like `deploy`.
stage
:
visualize
image
:
registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
script
:
# convert report from jacoco to cobertura, using relative project path
-
python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/cobertura.xml
needs
:
[
"
test"
]
artifacts
:
reports
:
cobertura
:
target/site/cobertura.xml
\ No newline at end of file
#coverage-jdk11:
# # Must be in a stage later than test-jdk11's stage.
# # The `visualize` stage does not exist by default.
# # Please define it first, or choose an existing stage like `deploy`.
# stage: visualize
# image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
# script:
# - 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml'
# - 'python /opt/source2filename.py target/site/cobertura.xml'
# needs: ["test"]
# artifacts:
# reports:
# cobertura: target/site/cobertura.xml
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment