c3b7251de4
Defined cover in tox.ini and added .coveragerc configuration consistent with other projects http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html Change-Id: I426f1081425ca9f8ea4297c665632954cc74bb8d
40 lines
954 B
INI
40 lines
954 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = docs,py33,py34,py26,py27,pypy,pep8,venv
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:docs]
|
|
basepython = python2.7
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
sphinx-build -b doctest doc/source doc/build
|
|
doc8 --ignore-path "doc/source/history.rst" doc/source
|
|
|
|
[testenv:venv]
|
|
basepython = python2.7
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args="{posargs}"
|