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