[tox]
envlist = py27, py35, docs

[testenv]
deps = -rrequirements-dev.txt
commands =
    py.test test_schedule.py --flake8 schedule -v --cov schedule --cov-report term-missing
    python setup.py check --strict --metadata --restructuredtext

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

[tox]
envlist = py27, py35, docs

[tox:travis]
2.7.11 = py27, docs
3.5 = py35, docs

[testenv]
deps = -rrequirements-dev.txt
commands =
    py.test test_schedule.py --flake8 schedule -v --cov schedule --cov-report term-missing
    python setup.py check --strict --metadata --restructuredtext

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

Build docs on CI, second attempt
Build docs on CI, second attempt
