Browse files

add tox.ini for testing

  • Loading branch information...
1 parent ee0c396 commit 649941c3a9a7cc63ee1b3fea33d1940bac4528c3 @mcdonc mcdonc committed Jul 22, 2011
Showing with 38 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +5 −0 CHANGES.txt
  3. +28 −0 tox.ini
View
5 .gitignore
@@ -2,6 +2,11 @@
*.egg-info
*.egg
*.pyc
+*$py.class
*.swp
dist/
env26/
+.tox/
+coverage.xml
+nosetests.xml
+
View
5 CHANGES.txt
@@ -1,3 +1,8 @@
+Next release
+------------
+
+- Add a tox.ini for Jenkins testing.
+
0.5 (2011-03-30)
----------------
View
28 tox.ini
@@ -0,0 +1,28 @@
+[tox]
+envlist =
+ py25,py26,py27,pypy,jython,cover
+
+[testenv]
+commands =
+ python setup.py test -q
+deps =
+ pyramid
+ beaker
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ pyramid
+ beaker
+ 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 649941c

Please sign in to comment.