[tox]
envlist = py27, pypy, py33, py34, py35, docs, py27-flake8, py35-flake8, integration
skip_missing_interpreters = True

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

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

[testenv:py27-flake8]
commands =
    pip install flake8
    flake8 pymemcache/

[testenv:py35-flake8]
commands =
    pip install flake8
    flake8 pymemcache/

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

[tox]
envlist = py27, pypy, py33, py34, py35, py27-flake8, py35-flake8, integration
skip_missing_interpreters = True

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

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

[testenv:py27-flake8]
commands =
    pip install flake8
    flake8 pymemcache/

[testenv:py35-flake8]
commands =
    pip install flake8
    flake8 pymemcache/

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

Remove docs from being run when you're running tests
Remove docs from being run when you're running tests
