Merge "fix tox python3 overrides"

This commit is contained in:
Zuul 2018-10-01 08:43:14 +00:00 committed by Gerrit Code Review
commit 809b1693c5
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@ commands =
stestr run {posargs} stestr run {posargs}
[testenv:cover] [testenv:cover]
basepython = python3
setenv = setenv =
PYTHON=coverage run --source monasca_persister --parallel-mode PYTHON=coverage run --source monasca_persister --parallel-mode
commands = commands =
@ -38,9 +39,11 @@ commands =
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
[testenv:debug] [testenv:debug]
basepython = python3
commands = oslo_debug_helper -t monasca_persister/tests {posargs} commands = oslo_debug_helper -t monasca_persister/tests {posargs}
[testenv:pep8] [testenv:pep8]
basepython = python3
deps = deps =
{[testenv]deps} {[testenv]deps}
commands = commands =
@ -49,15 +52,18 @@ commands =
python setup.py check --restructuredtext --strict python setup.py check --restructuredtext --strict
[testenv:genconfig] [testenv:genconfig]
basepython = python3
description = Generates sample configuration file for monasca-persister description = Generates sample configuration file for monasca-persister
whitelist_externals = bash whitelist_externals = bash
commands = commands =
oslo-config-generator --config-file=config-generator/persister.conf oslo-config-generator --config-file=config-generator/persister.conf
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:bindep] [testenv:bindep]
basepython = python3
# Do not install any requirements. We want this to be fast and work even if # 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 # system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed # dependencies are missing! This also means that bindep must be installed
@ -66,6 +72,7 @@ deps = bindep
commands = bindep test commands = bindep test
[testenv:flake8] [testenv:flake8]
basepython = python3
commands = commands =
flake8 monasca_persister flake8 monasca_persister