summaryrefslogtreecommitdiffstats
path: root/testapi/testapi-client/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/testapi-client/tox.ini')
-rw-r--r--testapi/testapi-client/tox.ini34
1 files changed, 34 insertions, 0 deletions
diff --git a/testapi/testapi-client/tox.ini b/testapi/testapi-client/tox.ini
new file mode 100644
index 0000000..51c3d57
--- /dev/null
+++ b/testapi/testapi-client/tox.ini
@@ -0,0 +1,34 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = pep8,py27
+skipsdist = True
+sitepackages = True
+
+[testenv]
+usedevelop = True
+install_command = pip install -U {opts} {packages}
+deps =
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+setenv=
+ HOME = {envtmpdir}
+ PYTHONPATH = {toxinidir}
+commands = stestr run {posargs}
+whitelist_externals = stestr
+
+[testenv:pep8]
+deps = flake8
+commands = flake8 {toxinidir}
+
+[flake8]
+# H803 skipped on purpose per list discussion.
+# E123, E125 skipped as they are invalid PEP-8.
+
+show-source = True
+ignore = E123,E125,H803
+builtins = _
+exclude = bin, build, dist, lib, local, .git, .eggs, .tox, .venv, venv, testapi_client.egg-info \ No newline at end of file