charms.openstack/tox.ini

38 lines
894 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 {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 = python3.5
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} charms_openstack unit_tests
[testenv:venv]
commands = {posargs}
[flake8]
ignore = E402,E226