Files
charms.openstack/tox.ini
Alex Kavanagh 6e589d1793 Use charmhelpers OPENSTACK_RELEASES instead of internal KNOWN_RELEASES
As part of the fix-alpha-comparisons-1659575 topic, OpenStack reactive
charms that use charms.openstack don't generally need an update.
However, it was noticed that charms.openstack used its own list, as it
predated the charm-helpers version.  In order to only have to maintain
the list in one place (contrib.openstack.utils.OPENSTACK_RELEASES) this
changeset removes the internal list and uses the external list.

The py27 test has been disabled as the charms.reactive library has
become py3.5+ only.  However, the gate retains the test (policy) so we
need to just disable the py27 here in the tox.ini.

Change-Id: Iaa08252e5093f69a201af2a61cbe952d3ab3b171
Related-Bug: #1659575
2017-05-12 16:09:52 +01:00

38 lines
924 B
INI

[tox]
envlist = pep8,py27,py34,py35
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
install_command =
pip install --allow-unverified python-apt {opts} {packages}
commands = ostestr {posargs}
[testenv:py27]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
# Py27 needs to be disabled as upstream charms.reactive is not Py3.5+ only
# However, we can't yet remove the actually py27 test from the gate.
commands = python -c "print('Py27 testing disabled.')" && /bin/true
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
[testenv:py35]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} charms_openstack unit_tests
[testenv:venv]
commands = {posargs}
[flake8]
ignore = E402,E226