2013-01-24 17:42:57 +00:00
|
|
|
[tox]
|
2017-05-28 05:19:05 +00:00
|
|
|
envlist = py35,py27,pep8,pylint
|
2016-12-20 04:43:45 +00:00
|
|
|
minversion = 2.0
|
2013-12-09 14:23:46 +00:00
|
|
|
skipsdist = True
|
2013-01-24 17:42:57 +00:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:23:46 +00:00
|
|
|
usedevelop = True
|
2017-12-01 06:44:18 +00:00
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
deps=
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
2014-01-16 08:43:21 +00:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-01-24 17:42:57 +00:00
|
|
|
commands=
|
2017-01-18 04:07:46 +00:00
|
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
2017-06-08 04:15:07 +00:00
|
|
|
passenv=
|
|
|
|
DUMP_CONFIG_GRAPH
|
2013-01-24 17:42:57 +00:00
|
|
|
|
2018-05-25 03:36:12 +00:00
|
|
|
[testenv:bindep]
|
|
|
|
deps = bindep
|
|
|
|
commands = bindep test
|
|
|
|
|
2013-01-24 17:42:57 +00:00
|
|
|
[testenv:pep8]
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2013-06-20 05:32:55 +00:00
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
2014-03-20 01:56:27 +00:00
|
|
|
dib-lint
|
2013-01-24 17:42:57 +00:00
|
|
|
|
2017-05-29 06:05:35 +00:00
|
|
|
[testenv:pylint]
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2017-05-29 06:05:35 +00:00
|
|
|
commands = pylint --rcfile pylint.cfg diskimage_builder
|
|
|
|
|
2013-01-24 17:42:57 +00:00
|
|
|
[testenv:venv]
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2013-01-24 17:42:57 +00:00
|
|
|
commands = {posargs}
|
|
|
|
|
2015-09-30 09:55:40 +00:00
|
|
|
[testenv:func]
|
|
|
|
envdir = {toxworkdir}/venv
|
|
|
|
commands = {toxinidir}/tests/run_functests.sh {posargs}
|
|
|
|
|
2013-01-24 17:42:57 +00:00
|
|
|
[testenv:cover]
|
2017-01-18 04:07:46 +00:00
|
|
|
# NOTE: this is "setup.py test" (*not* testr) which is a pbr wrapper
|
|
|
|
# around testr. This understands --coverage-package-name which we
|
|
|
|
# need due to underscore issues.
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2017-01-18 04:07:46 +00:00
|
|
|
commands = python setup.py test --coverage --coverage-package-name diskimage_builder --testr-args='{posargs}'
|
2013-01-24 17:42:57 +00:00
|
|
|
|
2015-02-09 20:58:58 +00:00
|
|
|
[testenv:docs]
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2015-02-09 20:58:58 +00:00
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2016-03-14 03:29:28 +00:00
|
|
|
[testenv:releasenotes]
|
2018-07-03 02:46:26 +00:00
|
|
|
basepython = python3
|
2016-03-14 03:29:28 +00:00
|
|
|
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2013-06-20 05:32:55 +00:00
|
|
|
[flake8]
|
2017-02-01 23:57:40 +00:00
|
|
|
ignore = E125,E126,E127,H202,H803
|
2017-01-19 21:00:21 +00:00
|
|
|
exclude = .venv,.git,.tox,dist,doc/build,doc/source,*lib/python*,*egg,build,conf.py
|
2018-03-22 15:13:31 +00:00
|
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
-c{toxinidir}/lower-constraints.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|