[tox]
envlist =
    py{27,34,35}-django{18,19,110},docs

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/thecut/exampleapp
commands = coverage run --branch --omit={envdir}/* runtests.py
basepython =
    py27: python2.7
    py34: python3.4
    py35: python3.5
deps =
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10
    django110: Django>=1.10b1,<1.11
    -r{toxinidir}/requirements-test.txt

[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

[tox]
envlist =
    py{27,34,35}-django{18,19,110},docs

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/thecut/exampleapp
commands =
    pip install --upgrade pip setuptools
    coverage run --branch --omit={envdir}/* runtests.py
basepython =
    py27: python2.7
    py34: python3.4
    py35: python3.5
deps =
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10
    django110: Django>=1.10b1,<1.11
    -r{toxinidir}/requirements-test.txt

[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

Upgrade ``pip`` and ``setuptools`` in Travis environments.
Upgrade ``pip`` and ``setuptools`` in Travis environments.
