11[tox]
22distribute = False
3- envlist = py27 ,py37,pep8
4- minversion = 2 .0
3+ envlist = py36 ,py37,pep8
4+ minversion = 3.1 .0
55skipsdist = True
6+ skip_missing_interpreters = true
7+ # this allows tox to infer the base python from the environment name
8+ # and override any basepython configured in this file
9+ ignore_basepython_conflict =true
610
711[testenv]
12+ basepython = python3
813usedevelop = True
914install_command = pip install {opts} {packages}
1015setenv =
@@ -25,11 +30,9 @@ commands = find . -type f -name "*.pyc" -delete
2530whitelist_externals = find
2631
2732[testenv:pep8]
28- basepython = python3
2933commands = flake8
3034
3135[testenv:pylint]
32- basepython = python3
3336deps =
3437 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
3538 -r{toxinidir}/requirements.txt
@@ -38,11 +41,9 @@ commands = bash tools/lintstack.sh
3841whitelist_externals = bash
3942
4043[testenv:venv]
41- basepython = python3
4244commands = {posargs}
4345
4446[testenv:cover]
45- basepython = python3
4647setenv =
4748 {[testenv]setenv}
4849 PYTHON =coverage run --source cinderclient --parallel-mode
@@ -53,15 +54,13 @@ commands =
5354 coverage xml -o cover/coverage.xml
5455
5556[testenv:docs]
56- basepython = python3
5757deps =
5858 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
5959 -r{toxinidir}/requirements.txt
6060 -r{toxinidir}/doc/requirements.txt
6161commands = sphinx-build -W -b html doc/source doc/build/html
6262
6363[testenv:pdf-docs]
64- basepython = python3
6564deps =
6665 {[testenv:docs]deps}
6766commands =
@@ -73,32 +72,42 @@ whitelist_externals =
7372 cp
7473
7574[testenv:releasenotes]
76- basepython = python3
7775deps =
7876 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
7977 -r{toxinidir}/requirements.txt
8078 -r{toxinidir}/doc/requirements.txt
8179commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
8280
8381[testenv:functional]
84- basepython = python3
8582commands = stestr run {posargs}
8683setenv =
8784 {[testenv]setenv}
8885 OS_TEST_PATH = ./cinderclient/tests/functional
8986 OS_VOLUME_API_VERSION = 3
87+ # must define this here so it can be inherited by the -py3* environments
88+ OS_CINDERCLIENT_EXEC_DIR = {envdir}/bin
89+
9090# The OS_CACERT environment variable should be passed to the test
9191# environments to specify a CA bundle file to use in verifying a
9292# TLS (https) server certificate.
9393passenv = OS_*
9494
95+ [testenv:functional-py36]
96+ setenv = {[testenv:functional]setenv}
97+ passenv = {[testenv:functional]passenv}
98+ commands = {[testenv:functional]commands}
99+
100+ [testenv:functional-py37]
101+ setenv = {[testenv:functional]setenv}
102+ passenv = {[testenv:functional]passenv}
103+ commands = {[testenv:functional]commands}
104+
95105[flake8]
96106show-source = True
97107ignore = H404,H405,E122,E123,E128,E251
98108exclude =.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
99109
100110[testenv:lower-constraints]
101- basepython = python3
102111deps =
103112 -c{toxinidir}/lower-constraints.txt
104113 -r{toxinidir}/test-requirements.txt
0 commit comments