Merge "tox: Don't delete Python3 .pyc files"
This commit is contained in:
commit
5712d99f51
6
tox.ini
6
tox.ini
|
@ -12,7 +12,7 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
|
|||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete
|
||||
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -not -path '*/__pycache__/*' -name '*.py[c|o]' -delete
|
||||
stestr run '{posargs}'
|
||||
stestr slowest
|
||||
|
||||
|
@ -23,7 +23,7 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|||
|
||||
[testenv:py27log]
|
||||
commands =
|
||||
find . -type f -name "*.py[c|o]" -delete
|
||||
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -not -path '*/__pycache__/*' -name '*.py[c|o]' -delete
|
||||
stestr run '^(?!heat_integrationtests){posargs}'
|
||||
|
||||
[testenv:pep8]
|
||||
|
@ -53,7 +53,7 @@ setenv =
|
|||
PYTHON=coverage run --source heat --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete
|
||||
find {toxinidir} -not -path '{toxinidir}/.tox/*' -not -path '*/__pycache__/*' -name '*.py[c|o]' -delete
|
||||
stestr run '{posargs}'
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
|
|
Loading…
Reference in New Issue