summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 37ab62e694a4fc620347f5c4f0a6796e8fbc8594 (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
[tox]
envlist = py27, py34, py35, py36, py37, pypy, pypy3, py27-flake8, py37-flake8, integration
skip_missing_interpreters = True

[testenv]
setenv =
    PYTHONPATH = {toxinidir}
deps = -r{toxinidir}/test-requirements.txt
commands =
    pip install -e .
    py.test {posargs:pymemcache/test/}

[testenv:integration]
commands =
    pip install -e .
    py.test {posargs:pymemcache/test/ -m integration}

[testenv:py27-flake8]
commands =
    pip install flake8
    flake8 pymemcache/
    python setup.py check --restructuredtext

[testenv:py37-flake8]
commands =
    pip install flake8
    flake8 pymemcache/
    python setup.py check --restructuredtext

[testenv:docs]
commands =
    pip install -r docs-requirements.txt
    sphinx-apidoc -o docs/apidoc/ pymemcache
    sphinx-build -b html docs/ docs/_build