summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini17
1 files changed, 2 insertions, 15 deletions
diff --git a/tox.ini b/tox.ini
index f36ce4a3..a5be1b39 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
-envlist = py27,py37,pep8,cover,api-ref,releasenotes,bandit,fakemodetests,pylint
+envlist = py37,pep8,cover,api-ref,releasenotes,bandit,fakemodetests,pylint
minversion = 2.0
skipsdist = True
[testenv]
+basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_TEST_PATH=./trove/tests/unittests
@@ -29,21 +30,17 @@ whitelist_externals = find
sitepackages = True
[testenv:pep8]
-basepython = python3
commands =
flake8
doc8 {posargs}
[testenv:fakemodetests]
-basepython = python3
commands = {envpython} run_tests.py
[testenv:debug]
-basepython = python3
commands = oslo_debug_helper {posargs}
[testenv:cover]
-basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source trove
@@ -56,7 +53,6 @@ commands =
coverage report
[testenv:venv]
-basepython = python3
commands = {posargs}
[doc8]
@@ -79,7 +75,6 @@ import_exceptions = trove.common.i18n
local-check-factory = trove.hacking.checks.factory
[testenv:api-ref]
-basepython = python3
# This environment is called from CI scripts to test and publish
# the API Ref to developer.openstack.org.
commands =
@@ -87,41 +82,33 @@ commands =
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:releasenotes]
-basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:bandit]
-basepython = python3
commands = bandit -r trove -n5 -x tests
[testenv:bandit-baseline]
-basepython = python3
envdir = {toxworkdir}/bandit
commands = bandit-baseline -r trove -n5 -x tests -ii -ll
[testenv:genpolicy]
-basepython = python3
commands = oslopolicy-sample-generator --config-file=tools/trove-policy-generator.conf
[testenv:pylint]
-basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python tools/trove-pylint.py {posargs:check}
[testenv:docs]
-basepython = python3
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:trovestack]
-basepython = python3
skip_install = True
changedir = {toxinidir}/integration/scripts
passenv = *