blob: e72eb58b78ae0e0546b515ebd616904f8e8ac36c [file] [log] [blame]
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07001[tox]
2envlist = py26,py27,pypy,py32,py33,docs,pep8
3
4[testenv]
Alex Gaynor83a0f482013-08-10 15:48:57 -04005deps =
Alex Gaynorff61cd32013-10-03 09:52:08 -07006 pytest
7 coverage
Alex Gaynor83a0f482013-08-10 15:48:57 -04008 pretend
Alex Gaynorff61cd32013-10-03 09:52:08 -07009commands =
10 coverage run --source=cryptography/,tests/ -m pytest
Donald Stufft34b6ae72013-10-19 19:20:58 -040011 coverage report -m --fail-under 100
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070012
13[testenv:docs]
14deps = sphinx
15basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040016commands =
17 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
18 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070019
20[testenv:pep8]
21deps = flake8
Donald Stufft9e1a48b2013-08-09 00:32:30 -040022# E128 continuation line under-indented for visual indent
23commands = flake8 --ignore="E128" cryptography/ tests/ docs/