
* Add a base test class derived from oslotest * Remove py33 support from tox * Cleanup pep8 errors Also, Jenkins requires a test to exist to pass, so this commit also contains a fix for Glance client endpoint rotation and an associated test case. Change-Id: Id9cfbe6cf54c2d5b078cbcb6dcee690915afa7ba
40 lines
935 B
INI
40 lines
935 B
INI
[tox]
|
|
envlist = py26,py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
#python -m cachemonkey.openstack.common.lockutils python setup.py test --slowest --testr-args='{posargs}'
|
|
python -m cachemonkey.openstack.common.lockutils python setup.py test
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pylint]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands = bash tools/lintstack.sh
|
|
|
|
[flake8]
|
|
show-source = true
|
|
ignore = H803
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|