[tox]
envlist = py27-1.7.X,py27-1.6.X,py27-1.5.X,py27-1.4.X,docs,flake8

[testenv]
commands=python setup.py test

[testenv:py27-1.7.X]
basepython = python2.7
deps = django>=1.7,<1.8

[testenv:py27-1.6.X]
basepython = python2.7
deps = django>=1.6,<1.7

[testenv:py27-1.5.X]
basepython = python2.7
deps = django>=1.5,<1.6

[testenv:py27-1.4.X]
basepython = python2.7
deps = django>=1.4,<1.5

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

[testenv:flake8]
basepython=python
deps=flake8
commands=
    flake8 tinyblog tests

[tox]
envlist = py27-{1.7.X,1.6.X,1.5.X,1.4.X},docs,flake8

[testenv]
commands=python setup.py test
basepython = python2.7
deps =
    1.4.X: Django>=1.4,<1.5
    1.5.X: Django>=1.5,<1.6
    1.6.X: Django>=1.6,<1.7
    1.7.X: Django>=1.7,<1.8

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

[testenv:flake8]
basepython=python
deps=flake8
commands=
    flake8 tinyblog tests

Simplify testing multiple versions of Django
Simplify testing multiple versions of Django
