rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = py27,py35,pep8 |
| 3 | minversion = 0.1 |
| 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | userdevelop = True |
| 8 | setenv = VIRTUAL_ENV={envdir} |
| 9 | deps = -r{toxinidir}/requirements.txt |
| 10 | -r{toxinidir}/test-requirements.txt |
| 11 | commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' |
| 12 | testr run {posargs} |
| 13 | |
| 14 | [testenv:pep8] |
Doug Hellmann | 96ed5f8 | 2018-09-26 18:52:19 -0400 | [diff] [blame] | 15 | basepython = python3 |
ricolin | 9b02d1e | 2017-12-29 15:35:49 +0800 | [diff] [blame] | 16 | setenv = |
| 17 | PYTHONPATH = . |
| 18 | commands = |
| 19 | flake8 |
| 20 | check-uuid --package heat_tempest_plugin |
| 21 | |
| 22 | [testenv:uuidgen] |
| 23 | setenv = |
| 24 | PYTHONPATH = . |
| 25 | commands = |
| 26 | check-uuid --fix --package heat_tempest_plugin |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 27 | |
| 28 | [testenv:docs] |
Doug Hellmann | 96ed5f8 | 2018-09-26 18:52:19 -0400 | [diff] [blame] | 29 | basepython = python3 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 30 | deps = -r{toxinidir}/requirements.txt |
| 31 | -r{toxinidir}/test-requirements.txt |
| 32 | sphinxcontrib-httpdomain |
| 33 | commands = python setup.py build_sphinx |
| 34 | |
| 35 | [testenv:venv] |
Doug Hellmann | 96ed5f8 | 2018-09-26 18:52:19 -0400 | [diff] [blame] | 36 | basepython = python3 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 37 | commands = {posargs} |
| 38 | |
| 39 | [flake8] |
| 40 | show-source = True |
| 41 | builtins = _ |
| 42 | exclude=.venv,.git,.tox,*lib/python*,private,.eggs |