Permalink
Browse files

Add tox

  • Loading branch information...
1 parent de60087 commit 9b03279a4cb82a573bb99ccd3653b941474b5ac1 @chrisrossi chrisrossi committed Aug 13, 2012
Showing with 27 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +26 −0 tox.ini
View
@@ -7,6 +7,7 @@ lib
*.DS_Store
.coverage
*.sw?
+.tox
dist
_build
venv
View
26 tox.ini
@@ -0,0 +1,26 @@
+[tox]
+envlist =
+ py26,py27,py32,pypy,cover
+
+[testenv]
+commands =
+ python setup.py test
+deps =
+
+[testenv:py32]
+commands =
+ python setup.py test
+deps =
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py dev
+ python setup.py nosetests
+deps =
+
+# we separate coverage into its own testenv because a) "last run wins" wrt
+# cobertura jenkins reporting and b) pypy and jython can't handle any
+# combination of versions of coverage and nosexcover that i can find.
+

0 comments on commit 9b03279

Please sign in to comment.