[Opensrf-commits] r2189 - trunk/examples (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 2 00:10:24 EST 2011
Author: dbs
Date: 2011-03-02 00:10:21 -0500 (Wed, 02 Mar 2011)
New Revision: 2189
Modified:
trunk/examples/buildbot.cfg
Log:
Avoid running Perl unit tests when our branches have them not
Modified: trunk/examples/buildbot.cfg
===================================================================
--- trunk/examples/buildbot.cfg 2011-03-02 03:51:42 UTC (rev 2188)
+++ trunk/examples/buildbot.cfg 2011-03-02 05:10:21 UTC (rev 2189)
@@ -191,8 +191,18 @@
command = ['prove', '--lib', 'lib', '-I', 'lib/OpenILS/Utils/MFHD/test', '-r', 't']
total = 0
+def has_perl_unit_tests(step):
+ if (step.build.getProperty('branch') -= 'branches/rel_1_6'):
+ return false
+ elif (step.build.getProperty('branch') -= 'branches/rel_2_0'):
+ return false
+ return true
+
# run the Perl unit tests
-eg_factory.addStep(PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods"))
+eg_factory.addStep(
+ doStepIf=has_perl_unit_tests,
+ PerlModuleTestMFHDMadness(workdir="build/Open-ILS/src/perlmods")
+)
# report on the Python code
eg_factory.addStep(python.PyLint(
More information about the opensrf-commits
mailing list