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] |
| 15 | commands = flake8 |
| 16 | |
| 17 | [testenv:docs] |
| 18 | deps = -r{toxinidir}/requirements.txt |
| 19 | -r{toxinidir}/test-requirements.txt |
| 20 | sphinxcontrib-httpdomain |
| 21 | commands = python setup.py build_sphinx |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
| 26 | [flake8] |
| 27 | show-source = True |
| 28 | builtins = _ |
| 29 | exclude=.venv,.git,.tox,*lib/python*,private,.eggs |