Add Constraints support
To be co-installable with other OpenStack projects and have consistent testing it's a good idea (tm) to use constraints when creating tox environments Change-Id: I342817b1ef813a190d97c61166bc303bc198d319
This commit is contained in:
parent
0d5ba59482
commit
5e0dd6cd3f
3
tox.ini
3
tox.ini
@ -1,11 +1,14 @@
|
|||||||
[tox]
|
[tox]
|
||||||
|
minversion = 2.0
|
||||||
envlist = py27,py34,py35,pep8
|
envlist = py27,py34,py35,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
setenv =
|
setenv =
|
||||||
|
VIRTUAL_ENV={envdir}
|
||||||
PYTHONPATH = {toxinidir}
|
PYTHONPATH = {toxinidir}
|
||||||
commands = nosetests --tests almanach.tests.unit
|
commands = nosetests --tests almanach.tests.unit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user