Permalink
Browse files

Better tox.

  • Loading branch information...
1 parent 792acb0 commit 34d5037976b1fcf56c9b74d1670fc448abf664fa @dreid dreid committed Oct 11, 2013
Showing with 17 additions and 2 deletions.
  1. +17 −2 tox.ini
View
19 tox.ini
@@ -1,6 +1,21 @@
[tox]
-envlist = py26, py27, pypy
+envlist = py26, py27, pypy, docs, pep8
[testenv]
+deps =
+ mock
+ coverage
commands =
- trial treq
+ coverage run --source=treq {envbindir}/trial treq
+ coverage report -m
+
+[testenv:docs]
+deps = sphinx
+basepython = python2.7
+commands =
+ sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
+
+[testenv:pep8]
+deps = flake8
+# E128 continuation line under-indented for visual indent
+commands = flake8 treq docs/examples/

0 comments on commit 34d5037

Please sign in to comment.