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
iPPIDB
ippidb-web
Commits
f2b0b96a
Commit
f2b0b96a
authored
Jun 15, 2022
by
Bryan BRANCOTTE
Browse files
Merge branch 'have-coverage' into 'dockerizing-app'
return the coverage to gitlab See merge request
!41
parents
138409a0
b0431b21
Pipeline
#83471
passed with stages
in 6 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f2b0b96a
...
...
@@ -32,8 +32,14 @@ test-style:
-v $(pwd)/persistent:/code/persistent
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/web-container:$CI_COMMIT_SHA"
test
-
mv persistent/coverage.xml coverage.xml
-
mv persistent/htmlcov htmlcov
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
reports
:
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
paths
:
-
htmlcov/*
-
persistent/tests_http_cache.sqlite
...
...
ippisite/.coveragerc
View file @
f2b0b96a
...
...
@@ -21,4 +21,7 @@ omit =
venv/*
[html]
directory = persistent/htmlcov
\ No newline at end of file
directory = persistent/htmlcov
[xml]
output = persistent/coverage.xml
\ No newline at end of file
ippisite/docker-entrypoint.sh
View file @
f2b0b96a
...
...
@@ -29,6 +29,7 @@ if [ "$1" == "test" ]; then
coverage run
||
exit
3
coverage combine
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
exit
0
fi
...
...
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