Merge "Add cover CI job and tox env"
This commit is contained in:
commit
795e71be39
7
.coveragerc
Normal file
7
.coveragerc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = tobiko
|
||||||
|
omit = tobiko/tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore_errors = True
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,8 +5,9 @@
|
|||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Hidden files
|
# Hidden files
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
.eggs
|
.eggs
|
||||||
.coverage*
|
|
||||||
.stestr
|
.stestr
|
||||||
.test
|
.test
|
||||||
.testrepository
|
.testrepository
|
||||||
|
22
tox.ini
22
tox.ini
@ -43,6 +43,28 @@ setenv =
|
|||||||
commands = {[base]commands}
|
commands = {[base]commands}
|
||||||
|
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
|
||||||
|
basepython = python3
|
||||||
|
|
||||||
|
setenv =
|
||||||
|
{[testenv]setenv}
|
||||||
|
PYTHON=coverage run --parallel-mode
|
||||||
|
|
||||||
|
commands =
|
||||||
|
find . -type f -name ".coverage.*" -delete
|
||||||
|
coverage erase
|
||||||
|
stestr run --no-subunit-trace --black-regex "{env:OS_BLACK_REGEX:}" {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
coverage report --fail-under=70 --skip-covered
|
||||||
|
find . -type f -name ".coverage.*" -delete
|
||||||
|
|
||||||
|
whitelist_externals=
|
||||||
|
find
|
||||||
|
|
||||||
|
|
||||||
# --- static analisys environments -------------------------------------------
|
# --- static analisys environments -------------------------------------------
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
- openstack-tox-py36
|
- openstack-tox-py36
|
||||||
- openstack-tox-py37
|
- openstack-tox-py37
|
||||||
- openstack-tox-py27
|
- openstack-tox-py27
|
||||||
|
- openstack-tox-cover
|
||||||
- tobiko-devstack-neutron-centos-7
|
- tobiko-devstack-neutron-centos-7
|
||||||
- tobiko-devstack-neutron-centos-7-queens
|
- tobiko-devstack-neutron-centos-7-queens
|
||||||
- tobiko-devstack-neutron-centos-7-rocky
|
- tobiko-devstack-neutron-centos-7-rocky
|
||||||
|
Loading…
Reference in New Issue
Block a user