Fix testenv

Change-Id: Id366a7b47c9ae94a0272451ba2d2cd26926bb094
This commit is contained in:
Steve Baker 2017-05-23 09:51:06 +12:00
parent 508468b84d
commit c4a016465b
3 changed files with 12 additions and 14 deletions

View File

@ -2,6 +2,6 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
pbr>=1.8 # Apache-2.0 pbr>=2.0.0,!=2.1.0 # Apache-2.0
cliff>=1.4 cliff>=2.6.0 # Apache-2.0

View File

@ -2,11 +2,11 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking>=0.12.0,<0.13 # Apache-2.0 hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
coverage>=4.0 # Apache-2.0 coverage>=4.0,!=4.4 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD python-subunit>=0.0.18 # Apache-2.0/BSD
sphinx>=1.2.1,!=1.3b1,<1.4 # BSD sphinx>=1.5.1,!=1.6.1 # BSD
oslosphinx>=4.7.0 # Apache-2.0 oslosphinx>=4.7.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD

16
tox.ini
View File

@ -1,16 +1,14 @@
[tox] [tox]
minversion = 2.0 minversion = 2.0
envlist = py34,py27,pypy,pep8 envlist = py35,py27,pep8
skipsdist = True skipsdist = True
[testenv] [testenv]
usedevelop = True setenv = VIRTUAL_ENV={envdir}
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}/requirements.txt
setenv = -r{toxinidir}/test-requirements.txt
VIRTUAL_ENV={envdir} commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
PYTHONWARNINGS=default::DeprecationWarning testr run {posargs}
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8] [testenv:pep8]
commands = flake8 {posargs} commands = flake8 {posargs}