[tox] minversion = 2.3.1 envlist = py27,py37,pep8 skipsdist = True [testenv] passenv = HOME setenv = VIRTUAL_ENV={envdir} usedevelop = True install_command = pip install {opts} {packages} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = sh find rm commands = find {toxinidir} -type f -name "*.py[c|o]" -delete rm -f .testrepository/times.dbm stestr run {posargs} [testenv:fullstack] basepython = python2.7 setenv = OS_TEST_PATH=./kuryr/tests/fullstack passenv = OS_* [testenv:debug] commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs} [testenv:debug-py27] basepython = python2.7 commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs} [testenv:debug-py36] basepython = python3.6 commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs} [testenv:pep8] basepython = python3 commands = flake8 [testenv:venv] basepython = python3 commands = {posargs} [testenv:cover] basepython = python3 commands = rm -f .testrepository/times.dbm python setup.py test --coverage --testr-args={posargs} \ --coverage-package-name=kuryr_kubernetes coverage report [testenv:docs] basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html [flake8] show-source = true enable-extensions = H106,H203 # TODO(dougw) neutron/tests/unit/vmware exclusion is a temporary services split hack exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,neutron/tests/unit/vmware*,releasenotes,kuryr_kubernetes/pod_resources/api_pb2* [testenv:pylint] basepython = python3 deps = {[testenv]deps} pylint commands = pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron} [hacking] import_exceptions = neutron.i18n local-check-factory = neutron_lib.hacking.checks.factory [testenv:genconfig] basepython = python3 commands = oslo-config-generator --config-file=etc/oslo-config-generator/kuryr.conf [testenv:releasenotes] basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt