aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/tox.ini
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-06-07 13:35:37 -0400
committerOle Trøan <otroan@employees.org>2019-06-18 12:19:55 +0000
commitae8819f0a426953aa7ebf97c2e26940525b55fb1 (patch)
treeeba8fcf6fabc0b1ec1de5febc8c214030e1b74b1 /src/vpp-api/python/tox.ini
parent283cd2e9afcab1407d5614d79da4354790fa059a (diff)
misc: vpp_papi- add tests, clean up pep8
Type: test Change-Id: Ic81bd4a9eba3c89a746e7a9b9e471b59cd87fa40 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python/tox.ini')
-rw-r--r--src/vpp-api/python/tox.ini40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/vpp-api/python/tox.ini b/src/vpp-api/python/tox.ini
new file mode 100644
index 00000000000..9b6c1f23bc6
--- /dev/null
+++ b/src/vpp-api/python/tox.ini
@@ -0,0 +1,40 @@
+[tox]
+envlist = py27,py3{6,7}, pep8
+minversion = 2.3.1
+skipsdist = True
+skip_missing_interpreters = True
+
+[testenv]
+usedevelop = True
+whitelist_externals =
+ find
+deps =
+ stestr
+ parameterized
+commands =
+ find . -type f -name "*.pyc" -delete
+ stestr --test-path {toxinidir}/vpp_papi/tests/ run --slowest {posargs}
+
+[testenv:pep8]
+basepython = python3
+deps =
+ flake8
+commands =
+ flake8 --exclude {toxinidir}/vpp_papi/tests {toxinidir}/vpp_papi {posargs}
+
+[testenv:pypi]
+basepython = python3
+deps =
+ twine
+ wheel
+passenv =
+ TWINE_USERNAME
+ TWINE_PASSWORD
+ TWINE_REPOSITORY
+ TWINE_REPOSITORY_URL
+ TWINE_CERT
+
+commands =
+ python setup.py bdist_wheel
+ twine upload {toxinidir}/dist/*
+