2c63950e34
Update the .gitreview file for the new project name. Add skeleton docs, setup, and testing. Most of this boilerplate has been copied from nodepool. In order to make testing easier, the EventProcessor class has been slightly refactored to allow FakeEventProcessor to subclass and mock out the socket object with a Queue.Queue object. Change-Id: I137849a16807b9c56cd6f31de57b2b99506c8219
34 lines
633 B
INI
34 lines
633 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = pep8, py27
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 log_processor
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E123,E125,H
|
|
select = H231,F
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|