Commit ec6f078f authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[tox/gitlab-ci] add coverage reports in tox & artifacts

parent 41d9ee0f1713
image: python:latest
stages:
- qa
- lint
- tests
- after-tests
- qa
lint_py:
except:
......@@ -62,6 +62,7 @@ py3_server:
paths:
- /builds/cubicweb/cubicweb/server.html
- /builds/cubicweb/cubicweb/py3-server-deprecated-warnings.json
- /reports/coverage-server.xml
py3_web:
except:
......@@ -77,6 +78,7 @@ py3_web:
paths:
- /builds/cubicweb/cubicweb/web.html
- /builds/cubicweb/cubicweb/py3-web-deprecated-warnings.json
- /reports/coverage-web.xml
py3_misc:
except:
......@@ -92,6 +94,7 @@ py3_misc:
paths:
- /builds/cubicweb/cubicweb/misc.html
- /builds/cubicweb/cubicweb/py3-misc-deprecated-warnings.json
- /reports/coverage-misc.xml
py3-from-forge-server:
stage: tests
......@@ -148,9 +151,8 @@ trigger-readthedocs:
sonarqube:
stage: qa
image: sonarsource/sonar-scanner-cli
# WIP
#only:
# - branch/default
only:
- branch/default
script:
- apk add python3 mercurial
- sonar-scanner
......
......@@ -2,3 +2,4 @@ pytest
pytest-subtests
pytest-html
git+https://github.com/Psycojoker/pytest-capture-deprecatedwarnings
pytest-cov
......@@ -16,9 +16,9 @@ deps =
web: -r{toxinidir}/requirements/test-web.txt
commands =
misc: {envpython} -m pip install --upgrade --no-deps --quiet https://github.com/logilab/yapps/tarball/master#egg=yapps
misc: {envpython} -m pytest -rs --html=misc.html {posargs} {toxinidir}/cubicweb/test {toxinidir}/cubicweb/dataimport/test {toxinidir}/cubicweb/devtools/test {toxinidir}/cubicweb/entities/test {toxinidir}/cubicweb/ext/test {toxinidir}/cubicweb/hooks/test {toxinidir}/cubicweb/sobjects/test {toxinidir}/cubicweb/wsgi/test {toxinidir}/cubicweb/pyramid/test
server: {envpython} -m pytest -rs --html=server.html {posargs} {toxinidir}/cubicweb/server/test
web: {envpython} -m pytest -rs --html=web.html {posargs} {toxinidir}/cubicweb/web/test
misc: {envpython} -m pytest --cov-report xml:{toxinidir}/reports/coverage-misc.xml --cov=cubicweb -rs --html=misc.html {posargs} {toxinidir}/cubicweb/test {toxinidir}/cubicweb/dataimport/test {toxinidir}/cubicweb/devtools/test {toxinidir}/cubicweb/entities/test {toxinidir}/cubicweb/ext/test {toxinidir}/cubicweb/hooks/test {toxinidir}/cubicweb/sobjects/test {toxinidir}/cubicweb/wsgi/test {toxinidir}/cubicweb/pyramid/test
server: {envpython} -m pytest --cov-report xml:{toxinidir}/reports/coverage-server.xml --cov=cubicweb -rs --html=server.html {posargs} {toxinidir}/cubicweb/server/test
web: {envpython} -m pytest --cov-report xml:{toxinidir}/reports/coverage-web.xml --cov=cubicweb -rs --html=web.html {posargs} {toxinidir}/cubicweb/web/test
[testenv:py3-from-forge-misc]
basepython=python3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment