[Checkins] SVN: zope.location/trunk/ Add support for continuous integration using 'tox' and 'jenkins'.
Tres Seaver
cvs-admin at zope.org
Thu Jun 7 01:32:28 UTC 2012
Log message for revision 126651:
Add support for continuous integration using 'tox' and 'jenkins'.
Changed:
_U zope.location/trunk/
U zope.location/trunk/.bzrignore
U zope.location/trunk/CHANGES.txt
U zope.location/trunk/setup.py
A zope.location/trunk/tox.ini
-=-
Modified: zope.location/trunk/.bzrignore
===================================================================
--- zope.location/trunk/.bzrignore 2012-06-07 01:32:20 UTC (rev 126650)
+++ zope.location/trunk/.bzrignore 2012-06-07 01:32:24 UTC (rev 126651)
@@ -1,3 +1,7 @@
*.egg-info
docs/_build
.coverage
+nosetests.xml
+coverage.xml
+__pycache__
+.tox
Modified: zope.location/trunk/CHANGES.txt
===================================================================
--- zope.location/trunk/CHANGES.txt 2012-06-07 01:32:20 UTC (rev 126650)
+++ zope.location/trunk/CHANGES.txt 2012-06-07 01:32:24 UTC (rev 126651)
@@ -5,6 +5,8 @@
4.0.0 (unreleased)
------------------
+- Added support for continuous integration using ``tox`` and ``jenkins``.
+
- 100% unit test coverage.
- Added Sphinx documentation: moved doctest examples to API reference.
Modified: zope.location/trunk/setup.py
===================================================================
--- zope.location/trunk/setup.py 2012-06-07 01:32:20 UTC (rev 126650)
+++ zope.location/trunk/setup.py 2012-06-07 01:32:24 UTC (rev 126651)
@@ -70,6 +70,7 @@
],
'docs': ['Sphinx', 'repoze.sphinx.autointerface'],
},
+ test_suite='zope.location.tests',
include_package_data = True,
zip_safe = False,
)
Added: zope.location/trunk/tox.ini
===================================================================
--- zope.location/trunk/tox.ini (rev 0)
+++ zope.location/trunk/tox.ini 2012-06-07 01:32:24 UTC (rev 126651)
@@ -0,0 +1,59 @@
+[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,pypy,coverage,docs
+
+[testenv]
+commands =
+ python setup.py test -q
+deps =
+ zope.component>=3.8
+ zope.configuration
+ zope.copy
+ zope.interface
+ zope.proxy>3.3
+ zope.schema>=3.6
+
+[testenv:jython]
+commands =
+ jython setup.py test -q
+deps =
+ zope.component>=3.8
+ zope.configuration
+ zope.copy
+ zope.interface
+ zope.proxy>3.3
+ zope.schema>=3.6
+
+[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.location
+ pip install -e .
+ nosetests --with-xunit --with-xcoverage
+deps =
+ zope.component>=3.8
+ zope.configuration
+ zope.copy
+ zope.interface
+ zope.proxy>3.3
+ zope.schema>=3.6
+ 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
+ repoze.sphinx.autointerface
More information about the checkins
mailing list