[Checkins] SVN: zope.hookable/trunk/ Add support for continuous integration using ``tox`` and ``jenkins``.

Tres Seaver cvs-admin at zope.org
Mon Jun 4 16:52:16 UTC 2012


Log message for revision 126582:
  Add support for continuous integration using ``tox`` and ``jenkins``.
  

Changed:
  _U  zope.hookable/trunk/
  U   zope.hookable/trunk/.bzrignore
  U   zope.hookable/trunk/CHANGES.txt
  A   zope.hookable/trunk/tox.ini

-=-
Modified: zope.hookable/trunk/.bzrignore
===================================================================
--- zope.hookable/trunk/.bzrignore	2012-06-04 16:52:08 UTC (rev 126581)
+++ zope.hookable/trunk/.bzrignore	2012-06-04 16:52:13 UTC (rev 126582)
@@ -1,3 +1,8 @@
 build
 *.egg-info
 _build
+.coverage
+coverage.xml
+nosetests.xml
+.tox
+__pycache__

Modified: zope.hookable/trunk/CHANGES.txt
===================================================================
--- zope.hookable/trunk/CHANGES.txt	2012-06-04 16:52:08 UTC (rev 126581)
+++ zope.hookable/trunk/CHANGES.txt	2012-06-04 16:52:13 UTC (rev 126582)
@@ -4,6 +4,8 @@
 4.0.0 (unreleased)
 ##################
 
+- Added support for continuous integration using ``tox`` and ``jenkins``.
+
 - Added a pure-Python reference implementation.
 
 - Doctests moved to Sphinx documentation.

Added: zope.hookable/trunk/tox.ini
===================================================================
--- zope.hookable/trunk/tox.ini	                        (rev 0)
+++ zope.hookable/trunk/tox.ini	2012-06-04 16:52:13 UTC (rev 126582)
@@ -0,0 +1,38 @@
+[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,py32,coverage,docs
+
+[testenv]
+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.hookable
+    pip install -e .
+    nosetests --with-xunit --with-xcoverage
+deps =
+    nose
+    coverage
+    nosexcover
+
+[testenv:docs]
+basepython =
+    python2.6
+commands = 
+    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
+    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
+deps =
+    Sphinx



More information about the checkins mailing list