de388f5e64
* Set uo manifest.in and tox.ini * Add test module Change-Id: I265401658922c75b50db4d1232af17215ee1b6fc
39 lines
922 B
INI
39 lines
922 B
INI
[tox]
|
|
envlist = py26,py27,pep8,pyflakes
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_OPENSTACK=1
|
|
NOSE_OPENSTACK_COLOR=1
|
|
NOSE_OPENSTACK_RED=0.05
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
deps = pep8==1.3.3
|
|
commands = pep8 --repeat --show-source muranorepository setup.py
|
|
|
|
[testenv:pyflakes]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = nosetests --cover-erase --cover-package=muranorepository --with-xcoverage
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
# H301 one import per line
|
|
# H302 import only modules
|
|
# H201 no 'except:' at least use 'except Exception:'
|
|
ignore = H301,H302,F403,H201
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.build,.venv,.git,.tox,dist,doc,*/openstack,*lib/python*,*egg,tools
|