Skip to content
Snippets Groups Projects
Commit 5a2df636 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'dockerizing-app' of gitlab.pasteur.fr:ippidb/ippidb-web into dockerizing-app

parents 090dc19d f2b0b96a
No related branches found
No related tags found
2 merge requests!43K8S deployments of release branche, and other updates,!38Dockerize app, and k8s
Pipeline #83475 passed
...@@ -32,8 +32,14 @@ test-style: ...@@ -32,8 +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+)?\%)$/'
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
......
...@@ -22,3 +22,6 @@ omit = ...@@ -22,3 +22,6 @@ omit =
[html] [html]
directory = persistent/htmlcov directory = persistent/htmlcov
[xml]
output = persistent/coverage.xml
\ No newline at end of file
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment