Permalink
Browse files

add a tox.ini for jenkins testing

  • Loading branch information...
mcdonc committed Jul 22, 2011
1 parent 74e00c8 commit b71f03f81351dd61d534fe026820116c998414ca
Showing with 32 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +28 −0 tox.ini
View
@@ -1,7 +1,11 @@
*.egg
*.egg-info
*.pyc
+*$py.class
+coverage.xml
+nosetests.xml
.coverage
.build
env26/
dist/
+.tox/
View
28 tox.ini
@@ -0,0 +1,28 @@
+[tox]
+envlist =
+ py25,py26,py27,jython,pypy,cover
+
+[testenv]
+commands =
+ python setup.py test -q
+
+[testenv:jython]
+commands =
+ jython setup.py test -q
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ nose
+ coverage==3.4
+ nosexcover
+
+
+# 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.
+# coverage==3.4 is required by nosexcover.
+

0 comments on commit b71f03f

Please sign in to comment.