Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame^] | 1 | # Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 | # in multiple virtualenvs. This configuration file will run the |
| 3 | # test suite on all supported python versions. To use it, "pip install tox" |
| 4 | # and then run "tox" from this directory. |
| 5 | |
| 6 | [tox] |
| 7 | skipsdist = True |
| 8 | envlist = py35,py34,py27,pypy,pep8 |
| 9 | |
| 10 | [testenv] |
| 11 | install_command = pip install --allow-external -U {opts} {packages} |
| 12 | deps = |
| 13 | setuptools |
| 14 | -r{toxinidir}/tcp_tests/requirements.txt |
| 15 | -r{toxinidir}/test-requirements.txt |
| 16 | usedevelop = False |
| 17 | commands = py.test -s -vvv tcp_tests/tests/unit |
| 18 | |
| 19 | [testenv:venv] |
| 20 | commands = {posargs} |
| 21 | |
| 22 | [testenv:pep8] |
| 23 | deps = flake8 |
| 24 | usedevelop = False |
| 25 | exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local* |
| 26 | commands = |
| 27 | flake8 {posargs:.} |
| 28 | |
| 29 | [flake8] |
| 30 | ignore = H302,H802 |
| 31 | exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib |
| 32 | show-pep8 = True |
| 33 | show-source = True |
| 34 | count = True |