blob: c0a9738f208657d9ee0f4e3225a5d574314a15c6 [file] [log] [blame]
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07001[tox]
Alex Gaynorc510e492013-10-31 11:37:11 -07002envlist = py26,py27,pypy,py32,py33,docs,pep8,py3pep8
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07003
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
David Reid46cb6012013-10-31 15:53:59 -070021# Temporarily disable coverage on pypy because of performance problems with
22# coverage.py on pypy.
23[testenv:pypy]
24commands = py.test
25
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070026[testenv:pep8]
27deps = flake8
Alex Gaynorafdddca2013-10-21 21:00:20 -070028commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070029
Alex Gaynorc510e492013-10-31 11:37:11 -070030[testenv:py3pep8]
31basepython = python3.3
32deps = flake8
33commands = flake8 .
34
Alex Gaynor967c03b2013-10-21 20:22:50 -070035[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070036exclude = .tox,*.egg