"evergreen-master-ubuntu-10.04-x86"
]))
+#### Build step tests
+def eg_requires_autogen(step):
+ 'Old versions of Evergreen require autogen.sh to bootstrap'
+ if (step.build.getProperty('branch') == 'rel_2_0' or
+ step.build.getProperty('branch') == 'rel_2_1'
+ ):
+ return True
+ return False
+
+def eg_requires_autoreconf(step):
+ 'Modern versions of Evergreen use autoreconf to bootstrap'
+ if eg_requires_autogen(step):
+ return False
+ return True
+
+def has_perl_unit_tests(step):
+ 'Only run Perl tests if there are tests'
+ if (step.build.getProperty('branch') == 'rel_2_0'):
+ return False
+ return True
+
+def osrf_requires_autogen(step):
+ 'Old versions of OpenSRF require autogen.sh to bootstrap'
+ if (step.build.getProperty('branch') == 'rel_2_0'):
+ return True
+ return False
+
+def osrf_requires_autoreconf(step):
+ 'Modern versions of OpenSRF use autoreconf to bootstrap'
+ if osrf_requires_autogen(step):
+ return False
+ return True
+
####### BUILDERS
# The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
)
# bootstrap the code - old branches require autogen.sh
-if (step.build.getProperty('branch') == 'rel_2_0'):
- osrf_factory.addStep(shell.ShellCommand(command=["./autogen.sh"]))
-else:
- osrf_factory.addStep(shell.ShellCommand(command=["autoreconf -f -i"]))
+osrf_factory.addStep(
+ shell.ShellCommand(command=["./autogen.sh"],
+ doStepIf=osrf_requires_autogen
+ )
+)
+
+osrf_factory.addStep(
+ shell.ShellCommand(command=["autoreconf -f -i"],
+ doStepIf=osrf_requires_autoreconf
+ )
+)
# configure (default args for now)
osrf_factory.addStep(shell.Configure())
)
# bootstrap the code - old branches require autogen.sh
-if (step.build.getProperty('branch') == 'rel_2_0' or
- step.build.getProperty('branch') == 'rel_2_1'
-):
- eg_factory.addStep(shell.ShellCommand(command=["./autogen.sh"]))
-else:
- eg_factory.addStep(shell.ShellCommand(command=["autoreconf -f -i"]))
+eg_factory.addStep(
+ shell.ShellCommand(command=["./autogen.sh"],
+ doStepIf=eg_requires_autogen
+ )
+)
+
+eg_factory.addStep(
+ shell.ShellCommand(command=["autoreconf -f -i"],
+ doStepIf=eg_requires_autoreconf
+ )
+)
# configure (default args for now)
eg_factory.addStep(shell.Configure())
command = ['prove', '--lib', 'lib', '-I', 'lib/OpenILS/Utils/MFHD/test', '-r', 't']
total = 0
-def has_perl_unit_tests(step):
- 'Only run Perl tests if there are tests'
- if (step.build.getProperty('branch') == 'rel_2_0'):
- return False
- return True
-
# run the Perl unit tests
eg_factory.addStep(PerlModuleTestMFHDMadness(
doStepIf=has_perl_unit_tests,