blob: 9b6c1f23bc6b160c30db7238f13b5d7f954a2317 [file] [log] [blame]
Paul Vinciguerraae8819f2019-06-07 13:35:37 -04001[tox]
2envlist = py27,py3{6,7}, pep8
3minversion = 2.3.1
4skipsdist = True
5skip_missing_interpreters = True
6
7[testenv]
8usedevelop = True
9whitelist_externals =
10 find
11deps =
12 stestr
13 parameterized
14commands =
15 find . -type f -name "*.pyc" -delete
16 stestr --test-path {toxinidir}/vpp_papi/tests/ run --slowest {posargs}
17
18[testenv:pep8]
19basepython = python3
20deps =
21 flake8
22commands =
23 flake8 --exclude {toxinidir}/vpp_papi/tests {toxinidir}/vpp_papi {posargs}
24
25[testenv:pypi]
26basepython = python3
27deps =
28 twine
29 wheel
30passenv =
31 TWINE_USERNAME
32 TWINE_PASSWORD
33 TWINE_REPOSITORY
34 TWINE_REPOSITORY_URL
35 TWINE_CERT
36
37commands =
38 python setup.py bdist_wheel
39 twine upload {toxinidir}/dist/*
40