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 | |
Dmitry | 011d2a0 | 2016-10-25 23:24:40 +0300 | [diff] [blame] | 10 | [tox:travis] |
| 11 | 2.7 = py27 |
| 12 | 3.4 = py34 |
| 13 | 3.5 = py35 |
| 14 | |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 15 | [testenv] |
| 16 | install_command = pip install --allow-external -U {opts} {packages} |
| 17 | deps = |
| 18 | setuptools |
| 19 | -r{toxinidir}/tcp_tests/requirements.txt |
| 20 | -r{toxinidir}/test-requirements.txt |
| 21 | usedevelop = False |
| 22 | commands = py.test -s -vvv tcp_tests/tests/unit |
| 23 | |
| 24 | [testenv:venv] |
| 25 | commands = {posargs} |
| 26 | |
| 27 | [testenv:pep8] |
| 28 | deps = flake8 |
| 29 | usedevelop = False |
| 30 | exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local* |
| 31 | commands = |
| 32 | flake8 {posargs:.} |
| 33 | |
| 34 | [flake8] |
| 35 | ignore = H302,H802 |
| 36 | exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib |
| 37 | show-pep8 = True |
| 38 | show-source = True |
| 39 | count = True |