Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = py26,py27,pypy,py32,py33,docs,pep8 |
| 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 = |
| 10 | coverage run --source=cryptography/,tests/ -m pytest |
Donald Stufft | 34b6ae7 | 2013-10-19 19:20:58 -0400 | [diff] [blame] | 11 | coverage report -m --fail-under 100 |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 12 | |
| 13 | [testenv:docs] |
| 14 | deps = sphinx |
| 15 | basepython = python2.7 |
Donald Stufft | 235fa71 | 2013-08-11 17:47:17 -0400 | [diff] [blame] | 16 | commands = |
| 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 Gaynor | 0a5654f | 2013-10-27 08:57:56 -0700 | [diff] [blame] | 19 | sphinx-build -W -b linkcheck docs docs/_build/html |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 20 | |
| 21 | [testenv:pep8] |
| 22 | deps = flake8 |
Alex Gaynor | afdddca | 2013-10-21 21:00:20 -0700 | [diff] [blame] | 23 | commands = flake8 . |
Alex Gaynor | 967c03b | 2013-10-21 20:22:50 -0700 | [diff] [blame] | 24 | |
| 25 | [flake8] |
Alex Gaynor | 1d80538 | 2013-10-21 20:44:52 -0700 | [diff] [blame] | 26 | exclude = .tox,*.egg |