blob: c1ecf7f85ff9ce4cbde3a8dccae5a6778827e51c [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001# 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]
7skipsdist = True
8envlist = py35,py34,py27,pypy,pep8
9
Dmitry011d2a02016-10-25 23:24:40 +030010[tox:travis]
112.7 = py27
123.4 = py34
133.5 = py35
14
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030015[testenv]
16install_command = pip install --allow-external -U {opts} {packages}
17deps =
18 setuptools
19 -r{toxinidir}/tcp_tests/requirements.txt
20 -r{toxinidir}/test-requirements.txt
21usedevelop = False
22commands = py.test -s -vvv tcp_tests/tests/unit
23
24[testenv:venv]
25commands = {posargs}
26
27[testenv:pep8]
28deps = flake8
29usedevelop = False
30exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local*
31commands =
32 flake8 {posargs:.}
33
34[flake8]
35ignore = H302,H802
36exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
37show-pep8 = True
38show-source = True
39count = True