2014-07-04 18:56:07 +09:00
|
|
|
[tox]
|
2018-11-28 08:01:24 +00:00
|
|
|
envlist = py36,py35,py27,pep8,docs
|
2016-12-21 13:29:00 +11:00
|
|
|
minversion = 2.0
|
2014-07-04 18:56:07 +09:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
|
|
|
usedevelop = True
|
2017-12-02 09:41:21 +01:00
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
deps =
|
2018-06-07 17:57:32 +09:00
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = stestr run --slowest {posargs}
|
2014-07-04 18:56:07 +09:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2018-06-06 17:58:19 -04:00
|
|
|
basepython = python3
|
2014-07-04 18:56:07 +09:00
|
|
|
commands = flake8
|
|
|
|
distribute = false
|
|
|
|
|
|
|
|
[testenv:venv]
|
2018-06-06 17:58:19 -04:00
|
|
|
basepython = python3
|
2014-07-04 18:56:07 +09:00
|
|
|
commands = {posargs}
|
|
|
|
|
2017-12-21 13:17:42 +08:00
|
|
|
[testenv:docs]
|
2018-06-06 17:58:19 -04:00
|
|
|
basepython = python3
|
2018-03-08 23:03:28 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2017-12-21 13:17:42 +08:00
|
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
|
2016-05-31 22:12:10 -05:00
|
|
|
[testenv:releasenotes]
|
2018-06-06 17:58:19 -04:00
|
|
|
basepython = python3
|
2018-03-08 23:03:28 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2016-05-31 22:12:10 -05:00
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2014-07-04 18:56:07 +09:00
|
|
|
[testenv:cover]
|
2018-06-06 17:58:19 -04:00
|
|
|
basepython = python3
|
2018-06-07 17:57:32 +09:00
|
|
|
setenv =
|
|
|
|
PYTHON=coverage run --source tackerclient --parallel-mode
|
|
|
|
commands =
|
|
|
|
stestr run {posargs}
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2014-07-04 18:56:07 +09:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E125 continuation line does not distinguish itself from next logical line
|
2016-01-27 22:02:03 +01:00
|
|
|
ignore = E125
|
2014-07-04 18:56:07 +09:00
|
|
|
show-source = true
|
2016-03-18 13:42:26 -04:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
2018-02-24 20:14:26 +09:00
|
|
|
# F821 undefined name 'unicode'
|
|
|
|
# if isinstance(config, str) or isinstance(config, unicode):
|
|
|
|
builtins = unicode
|
2018-03-22 18:04:32 -04:00
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|