blob: 3f879f767622df8d4d10a84a6eed7173bd0d4a8c [file] [log] [blame]
Dennis Dmitrievf3fbcd92017-11-22 18:53:49 +02001# 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
8#envlist = pep8, py{27,35}
9# requirement functools32 is not installed for py35
10envlist = pep8,py27
11
12[testenv]
13install_command = pip install -U {opts} {packages}
14deps =
15 pytest>=2.9
16 mock>=1.2
17 git+https://github.com/dis-xcom/reclass-tools
18usedevelop = False
19commands = py.test -s -vvv tests
20
21[testenv:venv]
22commands = {posargs}
23
24[testenv:pep8]
25deps = flake8
26usedevelop = False
27exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local*
28commands =
29 flake8 {posargs:.}
30
31[flake8]
32exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
33show-pep8 = True
34show-source = True
35count = True