blob: 92bcb75bdf5240312ca15234ae1c70c3997c6a3c [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 Gaynor0a5654f2013-10-27 08:57:56 -070019 sphinx-build -W -b linkcheck docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070020
21[testenv:pep8]
22deps = flake8
Alex Gaynorafdddca2013-10-21 21:00:20 -070023commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070024
25[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070026exclude = .tox,*.egg