[tox]
envlist =
    {py27,py33,py34,py35}-django-18
    {py27,py34,py35}-django-19
    {py27,py34,py35}-django-110
    lint,docs

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/surveys
commands = coverage run --source surveys runtests.py
deps =
    django-18: Django>=1.8,<1.9
    django-19: Django>=1.9,<1.10
    django-110: Django>=1.10
    -r{toxinidir}/requirements_test.txt

[testenv:lint]
basepython = python2.7
deps = flake8
commands = flake8 surveys tests

[testenv:docs]
changedir = docs
basepython = python2.7
deps =
    -rdocs/requirements.txt
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

[tox]
envlist =
    {py27,py33,py34,py35}-django-18
    {py27,py34,py35}-django-19
    {py27,py34,py35}-django-110
    lint,docs

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/surveys
commands = coverage run --source surveys runtests.py
deps =
    django-18: Django>=1.8,<1.9
    django-19: Django>=1.9,<1.10
    django-110: Django>=1.10,<1.11
    -r{toxinidir}/requirements_test.txt

[testenv:lint]
basepython = python2.7
deps = flake8
commands = flake8 surveys tests

[testenv:docs]
changedir = docs
basepython = python2.7
deps =
    -rdocs/requirements.txt
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

Make sure Django 1.10 tests aren't running on 1.11
Make sure Django 1.10 tests aren't running on 1.11
