From dd66558b69e3f884326d65a105ac6ccb12c463a9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 3 Nov 2015 16:49:48 -0800 Subject: [PATCH] Add tox.ini and .gitignore Change-Id: I10fe1310efc344567342e5fc135a62b56e445b1c --- .gitignore | 5 +++++ test-requirements.txt | 0 tox.ini | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 test-requirements.txt create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8f3d91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +AUTHORS +ChangeLog +*.egg-info/ +dist/ +.tox/ diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..84cd995 --- /dev/null +++ b/tox.ini @@ -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