blob: 9cd0699dbb4ecf73a8f858d13509ad11dee36089 [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 coverage
Alex Gaynorfb8adfc2013-10-31 14:16:24 -07007 iso8601
Alex Gaynor83a0f482013-08-10 15:48:57 -04008 pretend
Alex Gaynorfb8adfc2013-10-31 14:16:24 -07009 pytest
Alex Gaynorff61cd32013-10-03 09:52:08 -070010commands =
David Reid93a0b2f2013-12-23 15:56:21 -080011 coverage run --source=cryptography/,tests/ -m pytest --capture=no --strict
Alex Gaynor3e81fb22013-11-05 16:29:19 -080012 coverage report -m
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070013
14[testenv:docs]
Alex Gaynor13ec4792013-11-08 14:09:21 -080015deps =
16 sphinx
17 sphinx_rtd_theme
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070018basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040019commands =
20 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor960cf5e2013-12-15 10:24:35 -080021 sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
Donald Stufft235fa712013-08-11 17:47:17 -040022 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor0a5654f2013-10-27 08:57:56 -070023 sphinx-build -W -b linkcheck docs docs/_build/html
Alex Gaynorfc4e2b72014-01-10 07:30:51 -080024 sphinx-build -W -b spelling docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070025
David Reid46cb6012013-10-31 15:53:59 -070026# Temporarily disable coverage on pypy because of performance problems with
27# coverage.py on pypy.
28[testenv:pypy]
Alex Gaynor6f78d642014-01-01 08:29:32 -080029commands = py.test --capture=no --strict
David Reid46cb6012013-10-31 15:53:59 -070030
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070031[testenv:pep8]
32deps = flake8
Alex Gaynorafdddca2013-10-21 21:00:20 -070033commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070034
Alex Gaynorc510e492013-10-31 11:37:11 -070035[testenv:py3pep8]
36basepython = python3.3
37deps = flake8
38commands = flake8 .
39
Alex Gaynor967c03b2013-10-21 20:22:50 -070040[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070041exclude = .tox,*.egg