Initial setup
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
===============================
|
===============================
|
||||||
coverage2sql
|
coverage2sql README
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
Command to Read a coverage file and put the data in a SQL database
|
Command to Read a coverage file and put the data in a SQL database
|
||||||
|
|
||||||
Please feel here a long description which must be at least 3 lines wrapped on
|
coverage2sql is a tool for storing data of test coverage into a SQL database.
|
||||||
80 cols, so that distribution package maintainers can use it in their packages.
|
With using this tool, you can store time series coverage data and analyze it
|
||||||
Note that this is a hard requirement.
|
if your coverage rate is down.
|
||||||
|
|
||||||
* Free software: Apache license
|
* Free software: Apache license
|
||||||
* Documentation: http://docs.openstack.org/developer/coverage2sql
|
* Documentation: http://docs.openstack.org/developer/coverage2sql
|
||||||
|
@@ -12,3 +12,4 @@ oslotest>=1.10.0 # Apache-2.0
|
|||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
testscenarios>=0.4
|
testscenarios>=0.4
|
||||||
testtools>=1.4.0
|
testtools>=1.4.0
|
||||||
|
os-testr
|
||||||
|
46
tox.ini
46
tox.ini
@@ -1,60 +1,40 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 2.0
|
||||||
envlist = py34-constraints,py27-constraints,pypy-constraints,pep8-constraints
|
envlist = py34,py27,pypy,pep8
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command =
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
||||||
constraints: {[testenv:common-constraints]install_command}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
pip install -U {opts} {packages}
|
whitelist_externals = find
|
||||||
setenv =
|
deps = -r{toxinidir}/requirements.txt
|
||||||
VIRTUAL_ENV={envdir}
|
-r{toxinidir}/test-requirements.txt
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
commands =
|
||||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
find . -type f -name "*.pyc" -delete
|
||||||
|
ostestr {posargs}
|
||||||
[testenv:common-constraints]
|
|
||||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8 {posargs}
|
sitepackages = False
|
||||||
|
commands =
|
||||||
[testenv:pep8-constraints]
|
flake8 {posargs}
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
|
||||||
commands = flake8 {posargs}
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:venv-constraints]
|
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
|
||||||
commands = {posargs}
|
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:cover-constraints]
|
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
[testenv:docs-constraints]
|
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
|
||||||
commands = python setup.py build_sphinx
|
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper {posargs}
|
||||||
|
|
||||||
[testenv:debug-constraints]
|
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
|
||||||
commands = oslo_debug_helper {posargs}
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
# E123, E125 skipped as they are invalid PEP-8.
|
||||||
|
|
||||||
show-source = True
|
show-source = True
|
||||||
ignore = E123,E125
|
ignore = E123,E125
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
Reference in New Issue
Block a user