almanach/tox.ini
Doug Hellmann 72b3b91247 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I70b61c30b6901058d05d5e035547b2b1fe8bec83
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 08:58:13 -04:00

43 lines
1.1 KiB
INI

[tox]
minversion = 2.0
envlist = py27,py34,py35,pep8
[testenv]
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
setenv =
VIRTUAL_ENV={envdir}
PYTHONPATH = {toxinidir}
commands = nosetests --tests almanach.tests.unit
[testenv:genconfig]
commands = oslo-config-generator --namespace almanach --output-file=etc/almanach/almanach.conf
[testenv:venv]
commands = {posargs}
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:docs]
commands = python setup.py build_sphinx --fresh-env
[flake8]
show-source = True
enable-extensions = H106,H203
max-line-length = 120
exclude = .venv,.git,.tox,dist,doc,*egg,build
[hacking]
local-check-factory = almanach.hacking.checks.factory
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt