blob: 1ed7e5cc4b0037d8fc1adb17dbcd429737d2b101 [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
10[testenv]
11install_command = pip install --allow-external -U {opts} {packages}
12deps =
13 setuptools
14 -r{toxinidir}/tcp_tests/requirements.txt
15 -r{toxinidir}/test-requirements.txt
16usedevelop = False
17commands = py.test -s -vvv tcp_tests/tests/unit
18
19[testenv:venv]
20commands = {posargs}
21
22[testenv:pep8]
23deps = flake8
24usedevelop = False
25exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local*
26commands =
27 flake8 {posargs:.}
28
29[flake8]
30ignore = H302,H802
31exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
32show-pep8 = True
33show-source = True
34count = True