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
ec80e014
Commit
ec80e014
authored
Oct 13, 2021
by
Tigran Mkrtchyan
☕
Browse files
dcache-cta: split package and test steps
parent
78d36abd
Changes
1
Show whitespace changes
Inline
Side-by-side
dcache-cta-build.yaml
View file @
ec80e014
...
...
@@ -16,19 +16,28 @@ cache:
paths
:
-
./.m2/repository
build
:
package
:
stage
:
build
image
:
maven:3.6.3-openjdk-11
script
:
-
mvn $MAVEN_CLI_OPTS clean org.jacoco:jacoco-maven-plugin:prepare-agent package jacoco:report
-
mvn $MAVEN_CLI_OPTS clean -DskipTests package
artifacts
:
paths
:
-
"
target/dcache-cta*.tar.gz"
test
:
stage
:
build
image
:
maven:3.6.3-openjdk-11
script
:
-
mvn $MAVEN_CLI_OPTS clean org.jacoco:jacoco-maven-plugin:prepare-agent test jacoco:report
artifacts
:
reports
:
junit
:
-
"
**/
target/surefire-reports/TEST-*.xml"
-
"
**/
target/failsafe-reports/TEST-*.xml"
-
"
target/surefire-reports/TEST-*.xml"
-
"
target/failsafe-reports/TEST-*.xml"
paths
:
-
"
**/
target/
dcache-cta*.tar.gz
"
-
"
target/
site/jacoco/jacoco.xml
"
coverage-jdk11
:
# Must be in a stage later than test-jdk11's stage.
...
...
@@ -39,7 +48,7 @@ coverage-jdk11:
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
:
[
"
build
"
]
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