summaryrefslogtreecommitdiff
path: root/tox.ini
blob: d1168f1299786d3523f1f143034fc6ec8e91bb3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[tox]
envlist = py{26,27,py,33,34,35}, docs

[pytest]
testpaths = kafka test
doctest_optionflags = modules
addopts = --durations=10

[testenv]
deps =
    pytest
    pytest-cov
    pytest-catchlog
    pytest-pylint
    pytest-sugar
    pytest-mock
    mock
    python-snappy
    py{26,27}: six
    py26: unittest2
commands =
    py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka}
setenv =
    PROJECT_ROOT = {toxinidir}
passenv = KAFKA_VERSION

[testenv:docs]
deps =
    sphinxcontrib-napoleon
    sphinx_rtd_theme
    sphinx

commands =
    sphinx-apidoc -o docs/apidoc/ kafka/
    sphinx-build -b html docs/ docs/_build