Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 1 | [tox] |
Alex Gaynor | c510e49 | 2013-10-31 11:37:11 -0700 | [diff] [blame] | 2 | envlist = py26,py27,pypy,py32,py33,docs,pep8,py3pep8 |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 3 | |
4 | [testenv] | ||||
Alex Gaynor | 83a0f48 | 2013-08-10 15:48:57 -0400 | [diff] [blame] | 5 | deps = |
Alex Gaynor | ff61cd3 | 2013-10-03 09:52:08 -0700 | [diff] [blame] | 6 | pytest |
7 | coverage | ||||
Alex Gaynor | 83a0f48 | 2013-08-10 15:48:57 -0400 | [diff] [blame] | 8 | pretend |
Alex Gaynor | ff61cd3 | 2013-10-03 09:52:08 -0700 | [diff] [blame] | 9 | commands = |
Alex Gaynor | 144209d | 2013-11-16 11:55:12 -0800 | [diff] [blame] | 10 | coverage run --source=cryptography/,tests/ -m pytest --strict |
Alex Gaynor | 3e81fb2 | 2013-11-05 16:29:19 -0800 | [diff] [blame] | 11 | coverage report -m |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 12 | |
13 | [testenv:docs] | ||||
Alex Gaynor | 13ec479 | 2013-11-08 14:09:21 -0800 | [diff] [blame] | 14 | deps = |
15 | sphinx | ||||
16 | sphinx_rtd_theme | ||||
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 17 | basepython = python2.7 |
Donald Stufft | 235fa71 | 2013-08-11 17:47:17 -0400 | [diff] [blame] | 18 | commands = |
19 | sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html | ||||
Alex Gaynor | 960cf5e | 2013-12-15 10:24:35 -0800 | [diff] [blame] | 20 | sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex |
Donald Stufft | 235fa71 | 2013-08-11 17:47:17 -0400 | [diff] [blame] | 21 | sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html |
Alex Gaynor | 0a5654f | 2013-10-27 08:57:56 -0700 | [diff] [blame] | 22 | sphinx-build -W -b linkcheck docs docs/_build/html |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 23 | |
David Reid | 46cb601 | 2013-10-31 15:53:59 -0700 | [diff] [blame] | 24 | # Temporarily disable coverage on pypy because of performance problems with |
25 | # coverage.py on pypy. | ||||
26 | [testenv:pypy] | ||||
27 | commands = py.test | ||||
28 | |||||
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 29 | [testenv:pep8] |
30 | deps = flake8 | ||||
Alex Gaynor | afdddca | 2013-10-21 21:00:20 -0700 | [diff] [blame] | 31 | commands = flake8 . |
Alex Gaynor | 967c03b | 2013-10-21 20:22:50 -0700 | [diff] [blame] | 32 | |
Alex Gaynor | c510e49 | 2013-10-31 11:37:11 -0700 | [diff] [blame] | 33 | [testenv:py3pep8] |
34 | basepython = python3.3 | ||||
35 | deps = flake8 | ||||
36 | commands = flake8 . | ||||
37 | |||||
Alex Gaynor | 967c03b | 2013-10-21 20:22:50 -0700 | [diff] [blame] | 38 | [flake8] |
Alex Gaynor | 1d80538 | 2013-10-21 20:44:52 -0700 | [diff] [blame] | 39 | exclude = .tox,*.egg |