[Checkins] SVN: zope.configuration/branches/tseaver-test_cleanup/ Add support for continuous integration using 'tox' and 'jenkins'.

Tres Seaver cvs-admin at zope.org
Sun May 6 16:16:47 UTC 2012


Log message for revision 125668:
  Add support for continuous integration using 'tox' and 'jenkins'.
  

Changed:
  U   zope.configuration/branches/tseaver-test_cleanup/CHANGES.txt
  A   zope.configuration/branches/tseaver-test_cleanup/tox.ini

-=-
Modified: zope.configuration/branches/tseaver-test_cleanup/CHANGES.txt
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/CHANGES.txt	2012-05-06 16:16:23 UTC (rev 125667)
+++ zope.configuration/branches/tseaver-test_cleanup/CHANGES.txt	2012-05-06 16:16:44 UTC (rev 125668)
@@ -5,6 +5,8 @@
 4.0.0 (unreleased)
 ------------------
 
+- Added support for continuous integration using ``tox`` and ``jenkins``.
+
 - Added ``Sphinx`` documentation.
 
 - Added ``setup.py docs`` alias (installs ``Sphinx`` and dependencies).

Added: zope.configuration/branches/tseaver-test_cleanup/tox.ini
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/tox.ini	                        (rev 0)
+++ zope.configuration/branches/tseaver-test_cleanup/tox.ini	2012-05-06 16:16:44 UTC (rev 125668)
@@ -0,0 +1,35 @@
+[tox]
+envlist = 
+# 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,coverage
+
+[testenv]
+deps =
+    zope.configuration[test]
+commands = 
+    python 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.configuration
+    pip install -e .
+    nosetests --with-xunit --with-xcoverage
+deps =
+    zope.configuration[test]
+    zope.interface>=3.6.0
+    zope.event
+    zope.testing
+    nose
+    coverage
+    nosexcover



More information about the checkins mailing list