blob: 39fe024fbaa504c24920cea6a9d4c6acfe17a121 [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 =
Alex Gaynor144209d2013-11-16 11:55:12 -080010 coverage run --source=cryptography/,tests/ -m pytest --strict
Alex Gaynor3e81fb22013-11-05 16:29:19 -080011 coverage report -m
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070012
13[testenv:docs]
Alex Gaynor13ec4792013-11-08 14:09:21 -080014deps =
15 sphinx
16 sphinx_rtd_theme
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070017basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040018commands =
19 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor960cf5e2013-12-15 10:24:35 -080020 sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
Donald Stufft235fa712013-08-11 17:47:17 -040021 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor0a5654f2013-10-27 08:57:56 -070022 sphinx-build -W -b linkcheck docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070023
David Reid46cb6012013-10-31 15:53:59 -070024# Temporarily disable coverage on pypy because of performance problems with
25# coverage.py on pypy.
26[testenv:pypy]
27commands = py.test
28
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070029[testenv:pep8]
30deps = flake8
Alex Gaynorafdddca2013-10-21 21:00:20 -070031commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070032
Alex Gaynorc510e492013-10-31 11:37:11 -070033[testenv:py3pep8]
34basepython = python3.3
35deps = flake8
36commands = flake8 .
37
Alex Gaynor967c03b2013-10-21 20:22:50 -070038[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070039exclude = .tox,*.egg