|
|
@@ -1,9 +1,10 @@ |
|
|
|
[tox] |
|
|
|
minversion = 2.0 |
|
|
|
envlist = py3-{dj111,dj22},py27,py37,pep8 |
|
|
|
envlist = py3-{dj111,dj22},py37,pep8 |
|
|
|
skipsdist = True |
|
|
|
|
|
|
|
[testenv] |
|
|
|
basepython = python3 |
|
|
|
usedevelop = True |
|
|
|
install_command = pip install {opts} {packages} |
|
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
|
|
@@ -15,28 +16,23 @@ commands = |
|
|
|
dj22: pip install django>=2.2,<2.3 |
|
|
|
{envpython} {toxinidir}/manage.py test --settings=sahara_dashboard.test.settings --exclude-tag integration {posargs} |
|
|
|
|
|
|
|
[testenv:py27] |
|
|
|
setenv = |
|
|
|
DJANGO_SETTINGS_MODULE=sahara_dashboard.test.settings |
|
|
|
|
|
|
|
[testenv:py36] |
|
|
|
basepython = python3.6 |
|
|
|
setenv = |
|
|
|
DJANGO_SETTINGS_MODULE=sahara_dashboard.test.settings |
|
|
|
|
|
|
|
[testenv:py37] |
|
|
|
basepython = python3.7 |
|
|
|
setenv = |
|
|
|
DJANGO_SETTINGS_MODULE=sahara_dashboard.test.settings |
|
|
|
|
|
|
|
[testenv:pep8] |
|
|
|
basepython = python3 |
|
|
|
commands = flake8 |
|
|
|
|
|
|
|
[testenv:venv] |
|
|
|
basepython = python3 |
|
|
|
commands = {posargs} |
|
|
|
|
|
|
|
[testenv:py27integration] |
|
|
|
basepython = python2.7 |
|
|
|
[testenv:integration] |
|
|
|
passenv = AVCONV_INSTALLED |
|
|
|
setenv = |
|
|
|
INTEGRATION_TESTS=1 |
|
|
@@ -45,13 +41,11 @@ setenv = |
|
|
|
commands = {envpython} {toxinidir}/manage.py test --settings=sahara_dashboard.test.settings --verbosity 2 --tag integration {posargs} |
|
|
|
|
|
|
|
[testenv:releasenotes] |
|
|
|
basepython = python3 |
|
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
|
|
|
-r{toxinidir}/doc/requirements.txt |
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
|
|
|
|
|
|
|
[testenv:cover] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
coverage erase |
|
|
|
coverage run {toxinidir}/manage.py test --settings=sahara_dashboard.test.settings --exclude-tag integration {posargs} |
|
|
@@ -59,7 +53,6 @@ commands = |
|
|
|
coverage xml -o cover/coverage.xml |
|
|
|
|
|
|
|
[testenv:debug] |
|
|
|
basepython = python3 |
|
|
|
commands = oslo_debug_helper -t sahara_dashboard/test {posargs} |
|
|
|
|
|
|
|
[flake8] |
|
|
@@ -72,7 +65,6 @@ builtins = _ |
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools,.tmp |
|
|
|
|
|
|
|
[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 |
|
|
@@ -81,7 +73,6 @@ deps = bindep |
|
|
|
commands = bindep test |
|
|
|
|
|
|
|
[testenv:lower-constraints] |
|
|
|
basepython = python3 |
|
|
|
deps = |
|
|
|
-c{toxinidir}/lower-constraints.txt |
|
|
|
-r{toxinidir}/test-requirements.txt |