diff --git a/tox.ini b/tox.ini index a6ea53cd..b0b2a1a9 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,6 @@ minversion = 2.0 envlist = py35,py27,pep8 [testenv] -basepython = python3 setenv = VIRTUAL_ENV={envdir} BRANCH_NAME=master @@ -15,10 +14,8 @@ commands = python setup.py test --coverage --coverage-package-name=oslo_log --slowest --testr-args='{posargs}' coverage report --show-missing -[testenv:py27] -basepython = python2.7 - [testenv:pep8] +basepython = python3 commands = flake8 # Run security linter @@ -28,14 +25,17 @@ commands = commands = {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:cover] +basepython = python3 commands = python setup.py test --coverage --coverage-package-name=oslo_log --testr-args='{posargs}' coverage report --show-missing [testenv:bandit] +basepython = python3 commands = bandit -r oslo_log -x tests -n5 [flake8] @@ -49,10 +49,11 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py import_exceptions = oslo_log._i18n [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html - [testenv:lower-constraints] +basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt