blob: 379ee798fbc1d473b25119e0184b8ff2f398d83a [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
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030020usedevelop = False
21commands = py.test -s -vvv tcp_tests/tests/unit
22
23[testenv:venv]
24commands = {posargs}
25
26[testenv:pep8]
27deps = flake8
28usedevelop = False
29exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local*
30commands =
31 flake8 {posargs:.}
32
33[flake8]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030034exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
35show-pep8 = True
36show-source = True
37count = True