c9e0e2fca4
The gating on python 3.4 is restricted to <= Mitaka. This is due to the change from Ubuntu Trusty to Xenial, where only python3.5 is available. There is no need to continue to keep these settings. Change-Id: I72dd71f8f68b7459593b520ea42e9a8af6aaefba
30 lines
762 B
INI
30 lines
762 B
INI
[tox]
|
|
envlist = py35,py27,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv = PYTHONDONTWRITEBYTECODE=1
|
|
commands =
|
|
coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
|
|
coverage report -m --fail-under 90
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
commands =
|
|
flake8 dracclient
|
|
doc8 README.rst CONTRIBUTING.rst doc/source
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
show-source = True
|