aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini23
1 files changed, 14 insertions, 9 deletions
diff --git a/tox.ini b/tox.ini
index 47d08d9dc..a1c6e0c90 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
minversion = 2.5.0
skipsdist = True
-envlist = pep8,py27,py37,pypy
+envlist = pep8,py37,pypy
[testenv]
+basepython = python3
usedevelop=True
whitelist_externals = find
rm
@@ -20,11 +21,22 @@ commands =
stestr run {posargs}
stestr slowest
+[testenv:py27]
+basepython = python2.7
+
+[testenv:py36]
+basepython = python3.6
+
+[testenv:py37]
+basepython = python3.7
+
+[testenv:pypy]
+basepython = pypy
+
[testenv:debug]
commands = oslo_debug_helper -t kolla/tests {posargs}
[testenv:cover]
-basepython = python3
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
@@ -39,7 +51,6 @@ commands =
coverage report --show-missing
[testenv:pep8]
-basepython = python3
deps =
{[testenv]deps}
yamllint
@@ -56,7 +67,6 @@ commands =
commands = bandit --skip B303 -r docker kolla tests tools
[testenv:venv]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -64,7 +74,6 @@ deps =
commands = {posargs}
[testenv:docs]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
@@ -76,7 +85,6 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:pdf-docs]
-basepython = python3
whitelist_externals = make
deps = {[testenv:docs]deps}
commands =
@@ -149,14 +157,12 @@ commands=
oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf
[testenv:releasenotes]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[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
@@ -173,7 +179,6 @@ exclude=.eggs,.git,.tox,doc
local-check-factory = kolla.hacking.checks.factory
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt