[Checkins] SVN: zope.deprecation/trunk/ Updated tox support to include coverage.

Tres Seaver cvs-admin at zope.org
Thu Apr 19 22:26:51 UTC 2012


Log message for revision 125189:
  Updated tox support to include coverage.
  
  Jython support dropped pending upcoming 2.7-compatible release.

Changed:
  U   zope.deprecation/trunk/.bzrignore
  U   zope.deprecation/trunk/CHANGES.txt
  U   zope.deprecation/trunk/tox.ini

-=-
Modified: zope.deprecation/trunk/.bzrignore
===================================================================
--- zope.deprecation/trunk/.bzrignore	2012-04-19 22:26:44 UTC (rev 125188)
+++ zope.deprecation/trunk/.bzrignore	2012-04-19 22:26:48 UTC (rev 125189)
@@ -1,3 +1,4 @@
 .coverage
 *.egg-info
 __pycache__
+.tox

Modified: zope.deprecation/trunk/CHANGES.txt
===================================================================
--- zope.deprecation/trunk/CHANGES.txt	2012-04-19 22:26:44 UTC (rev 125188)
+++ zope.deprecation/trunk/CHANGES.txt	2012-04-19 22:26:48 UTC (rev 125189)
@@ -5,6 +5,8 @@
 4.0.0 (unreleased)
 ------------------
 
+- Updated support for continuous integration using ``tox`` and ``jenkins``.
+
 - 100% unit test coverage.
 
 - Added ``setup.py dev`` alias (runs ``setup.py develop`` plus installs

Modified: zope.deprecation/trunk/tox.ini
===================================================================
--- zope.deprecation/trunk/tox.ini	2012-04-19 22:26:44 UTC (rev 125188)
+++ zope.deprecation/trunk/tox.ini	2012-04-19 22:26:48 UTC (rev 125189)
@@ -1,14 +1,29 @@
 [tox]
 envlist = 
-    py25,py26,py27,py32,jython,pypy
+# Jython support pending 2.7 support, due 2012-07-15 or so.  See:
+# http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html
+#   py26,py27,py32,jython,pypy,coverage
+    py26,py27,py32,pypy,coverage
 
 [testenv]
 commands = 
     python setup.py test -q
-deps =
-    virtualenv
 
-[jython]
-commands =
-    jython setup.py test -q
+[testenv:jython]
+commands = 
+   jython setup.py test -q
 
+[testenv:coverage]
+basepython =
+    python2.6
+commands = 
+#   The installed version messes up nose's test discovery / coverage reporting
+#   So, we uninstall that from the environment, and then install the editable
+#   version, before running nosetests.
+    pip uninstall -y zope.deprecation
+    pip install -e .
+    nosetests --with-xunit --with-xcoverage
+deps =
+    nose
+    coverage
+    nosexcover



More information about the checkins mailing list