[tox]
envlist = py34, py35, py36, docs

[testenv]
deps =
    coverage
    pytest
    pytest-random-order
    mock
    flake8
    xmltodict
    beautifulsoup4
    untangle
commands =
    {envpython} setup.py check --strict
    flake8 holocron {posargs:tests}
    coverage run --source holocron -m pytest {posargs:tests}
    coverage report -m

[testenv:docs]
skip_install = true
deps =
    Sphinx
    sphinx_rtd_theme
commands =
    sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/

[tox]
envlist = py34, py35, py36, docs

[testenv]
deps =
    coverage
    pytest
    pytest-randomly
    mock
    flake8
    xmltodict
    beautifulsoup4
    untangle
commands =
    {envpython} setup.py check --strict
    flake8 holocron {posargs:tests}
    coverage run --source holocron -m pytest {posargs:tests}
    coverage report -m

[testenv:docs]
skip_install = true
deps =
    Sphinx
    sphinx_rtd_theme
commands =
    sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build/

Use pytest-randomly instead of pytest-random-order
Use pytest-randomly instead of pytest-random-order

Recent pytest-random-order versions do not support python3.4, and thus
older version is installed instead. Unfortunately, the older version is
incompatible with recent pytest versions (>= 4.0) and thus CI is broken.
That's why we need either stop testing on python3.4 or use another
plugin. While python3.4 will reach its end of life in 3 months, we
decided to use another plugin for a while.
