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