tox.ini
[tox]
envlist = py33, py34, py35, py36, style, docs
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/PyRate
PYRATEPATH = {toxinidir}
TRAVIS = 'dummy'
deps =
numpy >= 1.9.2
pytest
commands =
mpirun -n 4 pytest tests/test_mpi.py --basetemp={envtmpdir}
py.test --basetemp={envtmpdir} tests -k 'not test_mpi.py'
[testenv:py33]
deps =
numpy == 1.10.1
matplotlib == 1.5.1
pytest
[testenv:style]
deps =
pylint
commands =
pylint pyrate
[testenv:docs]
changedir=docs/
deps =
sphinx
ipython
sphinxcontrib-programoutput
recommonmark
commands =
sphinx-build -b linkcheck ./ _build/
sphinx-build -b html ./ _build/