Add tox.ini and .gitignore

Change-Id: I10fe1310efc344567342e5fc135a62b56e445b1c
This commit is contained in:
James E. Blair 2015-11-03 16:49:48 -08:00
parent 40126a4040
commit dd66558b69
3 changed files with 40 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
AUTHORS
ChangeLog
*.egg-info/
dist/
.tox/

0
test-requirements.txt Normal file
View File

35
tox.ini Normal file
View File

@ -0,0 +1,35 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = pep8, py27
[testenv]
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}'
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8 {posargs}
[testenv:cover]
commands =
python setup.py testr --coverage
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
# These are ignored intentionally in openstack-infra projects;
# please don't submit patches that solely correct them or enable them.
ignore = E125,E129,H
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg