From 68aee15bb4ba25334f3d433af66b61fe0433d401 Mon Sep 17 00:00:00 2001 From: dbs Date: Wed, 2 Mar 2011 05:10:21 +0000 Subject: [PATCH] Avoid running Perl unit tests when our branches have them not git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2189 9efc2488-bf62-4759-914b-345cdb29e865 --- examples/buildbot.cfg | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/buildbot.cfg b/examples/buildbot.cfg index 24e4a10..438c898 100644 --- a/examples/buildbot.cfg +++ b/examples/buildbot.cfg @@ -191,8 +191,18 @@ class PerlModuleTestMFHDMadness(shell.PerlModuleTest): 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( -- 2.11.0