Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Queue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
Queue
Commits
8baf629c
Commit
8baf629c
authored
Mar 4, 2021
by
Otto Visser
Browse files
Options
Downloads
Plain Diff
Merge branch 'CIcoverage' into 'development'
CI coverage See merge request
!418
parents
26a08c57
db401080
Branches
Branches containing commit
No related tags found
3 merge requests
!436
Resolve "[Queue-2.0] CSV Import for TAs"
,
!428
small fixes
,
!418
CI coverage
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-1
25 additions, 1 deletion
.gitlab-ci.yml
with
25 additions
and
1 deletion
.gitlab-ci.yml
+
25
−
1
View file @
8baf629c
...
...
@@ -126,9 +126,10 @@ gradle_test:
expire_in
:
6 hours
paths
:
-
codecov/
-
build/reports/jacoco/test/jacocoTestReport.xml
reports
:
junit
:
build/test-results/test/TEST-*.xml
cobertura
:
build/reports/jacoco/test/jacocoTestReport.xml
#
cobertura
:
build/reports/jacoco/test/jacocoTestReport.xml
script
:
-
gradle --build-cache test
after_script
:
...
...
@@ -277,6 +278,29 @@ include:
# - when: never
# script: echo Oops
coverage
:
image
:
haynes/jacoco2cobertura:1.0.4
extends
:
-
.gitlab_reporter
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "trigger"
when
:
never
-
if
:
$CI_COMMIT_BRANCH == "master" ||
$CI_COMMIT_BRANCH == "development" ||
$CI_MERGE_REQUEST_ID ||
$CI_PIPELINE_SOURCE == "push"
script
:
# convert report from jacoco to cobertura
-
'
python
/opt/cover2cover.py
build/reports/jacoco/test/jacocoTestReport.xml
src/main/java
>
build/cobertura.xml'
# read the <source></source> tag and prepend the path to every filename attribute
-
'
python
/opt/source2filename.py
build/cobertura.xml'
needs
:
-
gradle_test
dependencies
:
-
gradle_test
artifacts
:
reports
:
cobertura
:
build/cobertura.xml
# Runs the code quality reporter
code_quality
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment