Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
b18db2bb
Commit
b18db2bb
authored
3 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
provide coverage insight
parent
9fdbb477
No related branches found
No related tags found
1 merge request
!41
return the coverage to gitlab
Pipeline
#83468
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
ippisite/.coveragerc
+4
-1
4 additions, 1 deletion
ippisite/.coveragerc
ippisite/docker-entrypoint.sh
+1
-0
1 addition, 0 deletions
ippisite/docker-entrypoint.sh
with
10 additions
and
1 deletion
.gitlab-ci.yml
+
5
−
0
View file @
b18db2bb
...
@@ -32,9 +32,14 @@ test-style:
...
@@ -32,9 +32,14 @@ test-style:
-v $(pwd)/persistent:/code/persistent
-v $(pwd)/persistent:/code/persistent
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/web-container:$CI_COMMIT_SHA"
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/web-container:$CI_COMMIT_SHA"
test
test
-
mv persistent/coverage.xml coverage.xml
-
mv persistent/htmlcov htmlcov
-
mv persistent/htmlcov htmlcov
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
artifacts
:
reports
:
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
paths
:
paths
:
-
htmlcov/*
-
htmlcov/*
-
persistent/tests_http_cache.sqlite
-
persistent/tests_http_cache.sqlite
...
...
This diff is collapsed.
Click to expand it.
ippisite/.coveragerc
+
4
−
1
View file @
b18db2bb
...
@@ -21,4 +21,7 @@ omit =
...
@@ -21,4 +21,7 @@ omit =
venv/*
venv/*
[html]
[html]
directory = persistent/htmlcov
directory = persistent/htmlcov
\ No newline at end of file
[xml]
output = persistent_volume/coverage.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ippisite/docker-entrypoint.sh
+
1
−
0
View file @
b18db2bb
...
@@ -29,6 +29,7 @@ if [ "$1" == "test" ]; then
...
@@ -29,6 +29,7 @@ if [ "$1" == "test" ]; then
coverage run
||
exit
3
coverage run
||
exit
3
coverage combine
coverage combine
coverage report
--skip-covered
--omit
=
*
/wsgi.py,
*
/asgi.py,manage.py,
*
/apps.py
coverage report
--skip-covered
--omit
=
*
/wsgi.py,
*
/asgi.py,manage.py,
*
/apps.py
coverage xml
coverage html
--omit
=
*
/wsgi.py,
*
/asgi.py,manage.py,
*
/apps.py
coverage html
--omit
=
*
/wsgi.py,
*
/asgi.py,manage.py,
*
/apps.py
exit
0
exit
0
fi
fi
...
...
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
register
or
sign in
to comment