
This is a clone of networking-sfc's tools/tox_install.sh that allows the optimal version of neutron to be installed when running tox. Related commit: 10cecb9837d5f8563b5a2f0de6d1081cbde05bdb Change-Id: I28230acb499c8aa04033fa552da660ec80c4fd03
42 lines
1.0 KiB
INI
42 lines
1.0 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py35,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
#install_command = pip install -U {opts} {packages}
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = rm
|
|
commands =
|
|
rm -f .testrepository/times.dbm
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
# TODO(igordcard): enable pylint on a future patch
|
|
# pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_classifier}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
#ignore =
|
|
builtins = _
|
|
exclude = ./.*,build,dist
|