Update tox.ini files from release-tools gold copy

All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Change-Id: I9541f12fbf1a9b8a51a431c33fc984ac38bde177
This commit is contained in:
Ryan Beisner 2016-09-06 22:09:23 +00:00
parent 355617388a
commit bcdac5541b

10
tox.ini
View File

@ -1,3 +1,6 @@
# Classic charm: ./tox.ini
# This file is managed centrally by release-tools and should not be modified
# within individual charm repos.
[tox] [tox]
envlist = pep8,py27 envlist = pep8,py27
skipsdist = True skipsdist = True
@ -5,9 +8,12 @@ skipsdist = True
[testenv] [testenv]
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0 PYTHONHASHSEED=0
AMULET_SETUP_TIMEOUT=2700
install_command = install_command =
pip install --allow-unverified python-apt {opts} {packages} pip install --allow-unverified python-apt {opts} {packages}
commands = ostestr {posargs} commands = ostestr {posargs}
whitelist_externals = juju
passenv = HOME TERM AMULET_*
[testenv:py27] [testenv:py27]
basepython = python2.7 basepython = python2.7
@ -18,7 +24,7 @@ deps = -r{toxinidir}/requirements.txt
basepython = python2.7 basepython = python2.7
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} actions hooks unit_tests tests commands = flake8 {posargs} hooks unit_tests tests actions
charm-proof charm-proof
[testenv:venv] [testenv:venv]
@ -70,4 +76,4 @@ commands =
[flake8] [flake8]
ignore = E402,E226 ignore = E402,E226
exclude = hooks/charmhelpers exclude = */charmhelpers