diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-06-06 15:27:00 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-06-06 15:27:00 -0400 |
commit | 573fde0ff964003006a6445edf774812ee09c496 (patch) | |
tree | 8d75fd845c6c77c318311e60ef94ccc9b08c755f /tox.ini | |
parent | d11bd6a15410ab375ac83949150df25d3f446b73 (diff) | |
download | glance_store-573fde0ff964003006a6445edf774812ee09c496.tar.gz |
fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ife7b0078c67df55b4b5d5b3d27f4228907a5531b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -14,12 +14,15 @@ passenv = OS_TEST_* commands = ostestr --slowest {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/.doctrees -b html releasenotes/source releasenotes/build/html [testenv:pep8] +basepython = python3 commands = flake8 {posargs} # Run security linter @@ -31,6 +34,7 @@ commands = doc8 {posargs} [testenv:bandit] +basepython = python3 # NOTE(browne): This is required for the integration test job of the bandit # project. Please do not remove. # The following bandit tests are being skipped: @@ -40,10 +44,12 @@ commands = commands = bandit -r glance_store -x tests --skip B101,B110,B303 [testenv:cover] +basepython = python3 setenv = VIRTUAL_ENV={envdir} commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' [testenv:venv] +basepython = python3 commands = {posargs} # See glance_store/tests/functional/README.rst for information on writing or |