blob: 9014d599ac741f18807c53917238c25a84366810 [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
Dennis Dmitriev9b02c8b2017-11-13 15:31:35 +02008#envlist = pep8, py{27,35}
9# requirement functools32 is not installed for py35
10envlist = pep8,py27
Dmitry011d2a02016-10-25 23:24:40 +030011
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030012[testenv]
Dennis Dmitriev9b02c8b2017-11-13 15:31:35 +020013install_command = pip install -U {opts} {packages}
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030014deps =
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030015 -r{toxinidir}/tcp_tests/requirements.txt
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030016usedevelop = 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]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030030exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
31show-pep8 = True
32show-source = True
33count = True