|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
[tox]
|
|
|
|
|
envlist = py27,py35,py36,pep8
|
|
|
|
|
minversion = 1.6
|
|
|
|
|
envlist = py36,py37,py27,pep8
|
|
|
|
|
minversion = 3.1.0
|
|
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
# Note the hash seed is set to 0 until heat can be tested with a
|
|
|
|
|
# random hash seed successfully.
|
|
|
|
|
basepython = python3
|
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
|
|
|
OS_TEST_PATH=gbpautomation/heat/tests
|
|
|
|
@ -13,7 +14,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|
|
|
|
usedevelop = True
|
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
|
deps =
|
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
|
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
|
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
|
commands =
|
|
|
|
@ -30,18 +31,15 @@ commands =
|
|
|
|
|
python -c "print('TODO: functional tests')"
|
|
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
|
basepython = python3
|
|
|
|
|
commands =
|
|
|
|
|
flake8
|
|
|
|
|
# Check that .po and .pot files are valid:
|
|
|
|
|
# bash -c "find gbpautomation -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
|
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
|
basepython = python3
|
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
|
basepython = python3
|
|
|
|
|
setenv =
|
|
|
|
|
PYTHON=coverage run --source gbpautomation --parallel-mode
|
|
|
|
|
commands =
|
|
|
|
@ -54,7 +52,6 @@ commands =
|
|
|
|
|
coverage report
|
|
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
|
basepython = python3
|
|
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
|
|
|
commands =
|
|
|
|
|
rm -rf doc/build
|
|
|
|
@ -64,13 +61,12 @@ commands =
|
|
|
|
|
# H302 import only modules.'bla..' does not import a module
|
|
|
|
|
# H404 multi line docstring should start with a summary
|
|
|
|
|
# H803 no full stop at the end of the commit message
|
|
|
|
|
ignore = H302,H404,H803
|
|
|
|
|
ignore = H302,H404,H803,,W503,W504
|
|
|
|
|
show-source = true
|
|
|
|
|
builtins = _
|
|
|
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,tools,build
|
|
|
|
|
|
|
|
|
|
[testenv:bindep]
|
|
|
|
|
basepython = python3
|
|
|
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
|
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
|
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
|
|
|