summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 1ee1e162daf811173e7a6abceefe06b1a60b5d69 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[tox]
envlist = lint, py26, py27, pypy, py33, py34, py35, docs

[testenv]
deps =
    nose
    nose-timer
    coverage
    mock
    python-snappy
commands =
    nosetests {posargs:-v -x --with-id --id-file={envdir}/.noseids --with-timer --timer-top-n 10 --with-coverage --cover-erase --cover-package kafka}
setenv =
    NOSE_LOGFORMAT = %(asctime)s - %(thread)d - %(name)s - %(levelname)s - %(message)s
    PROJECT_ROOT = {toxinidir}
passenv = KAFKA_VERSION

[testenv:py26]
deps =
    six
    unittest2
    nose
    nose-timer
    coverage
    mock
    python-snappy

[testenv:py27]
deps =
    six
    unittest2
    nose
    nose-timer
    coverage
    mock
    python-snappy

[testenv:lint]
basepython = python2.7
deps =
    unittest2
    mock
    pylint
commands = pylint --rcfile=pylint.rc {posargs: -E kafka test}

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

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