summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2016-12-13 06:14:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-13 06:14:07 +0000
commitcf6045f81bdbe8d53b2ef24fbe1ecdf571127158 (patch)
treef9d23028d75a6b250932af058a1977483b3fbfaa /tox.ini
parent888658027b97c0df51af8bea749a1e8444536cdb (diff)
parentef7fd4008481b5b98316240b0703d2c78fbd30e8 (diff)
Merge "[WIP] Migrate to tox based environment"
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..12cf8e32
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,26 @@
+[tox]
+minversion = 1.6
+skipsdist = True
+envlist = py27,pep8
+
+[testenv]
+basepython=python2
+usedevelop = True
+install_command = pip install -U {opts} {packages}
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+commands =
+ py.test --basetemp={envtmpdir} {posargs}
+setenv =
+ VIRTUAL_ENV={envdir}
+ HOME = {envtmpdir}
+ PYTHONPATH = {toxinidir}
+
+[testenv:pep8]
+deps = flake8
+commands = flake8 {toxinidir}
+
+[flake8]
+show-source = True
+ignore = E123,E125,H803
+exclude = .tox,dist,docs,.egg,build,.venv,.git