Merge "tox: Don't create '.pyc' files"

This commit is contained in:
Jenkins 2016-07-25 18:37:10 +00:00 committed by Gerrit Code Review
commit aaeaaf5c16

View File

@ -7,16 +7,15 @@ skipsdist = True
usedevelop = True usedevelop = True
# tox is silly... these need to be separated by a newline.... # tox is silly... these need to be separated by a newline....
whitelist_externals = bash whitelist_externals = bash
find
rm rm
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/unit OS_TEST_PATH=./nova/tests/unit
LANGUAGE=en_US LANGUAGE=en_US
LC_ALL=en_US.utf-8 LC_ALL=en_US.utf-8
PYTHONDONTWRITEBYTECODE=1
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox.sh '{posargs}' bash tools/pretty_tox.sh '{posargs}'
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG
# there is also secret magic in pretty_tox.sh which lets you run in a fail only # there is also secret magic in pretty_tox.sh which lets you run in a fail only
@ -34,13 +33,11 @@ commands =
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909 # other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
commands = commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox3.sh '{posargs}' bash tools/pretty_tox3.sh '{posargs}'
[testenv:py35] [testenv:py35]
setenv = {[testenv]setenv} setenv = {[testenv]setenv}
commands = commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox3.sh '{posargs}' bash tools/pretty_tox3.sh '{posargs}'
[testenv:functional] [testenv:functional]
@ -49,7 +46,6 @@ setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/functional OS_TEST_PATH=./nova/tests/functional
LANGUAGE=en_US LANGUAGE=en_US
commands = commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox.sh '{posargs}' bash tools/pretty_tox.sh '{posargs}'
[testenv:api-samples] [testenv:api-samples]
@ -60,7 +56,6 @@ setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/functional/api_sample_tests OS_TEST_PATH=./nova/tests/functional/api_sample_tests
LANGUAGE=en_US LANGUAGE=en_US
commands = commands =
find . -type f -name "*.pyc" -delete
bash tools/pretty_tox.sh '{posargs}' bash tools/pretty_tox.sh '{posargs}'
[testenv:genconfig] [testenv:genconfig]