c['slaves'] = [
BuildSlave("opensrf-slave", "XXX", max_builds=1),
BuildSlave("eg-slave", "XXX", max_builds=1),
- BuildSlave("eg-u804", "XXX", max_builds=1),
BuildSlave("eg-u1004", "XXX", max_builds=1)
]
c['slavePortnum'] = XXX
# Branches and distros to build
-OSRF_BRANCHES = ('master', 'rel_1_6', 'rel_2_0')
+OSRF_BRANCHES = ('master', 'rel_2_1', 'rel_2_0')
OSRF_DISTROS = [('ubuntu-10.04-x86_64', 'opensrf-slave')]
-EG_BRANCHES = ('master', 'rel_1_6_1', 'rel_2_0', 'rel_2_1')
+EG_BRANCHES = ('master', 'rel_2_2', 'rel_2_0', 'rel_2_1')
EG_DISTROS = [
('debian-6.00-x86_64', 'eg-slave'), # UPEI
- ('ubuntu-8.04-x86', 'eg-u804'), # GPLS
('ubuntu-10.04-x86', 'eg-u1004') # GPLS
]
))
####### FILTERS
-from buildbot.schedulers.filter import ChangeFilter
+from buildbot.changes.filter import ChangeFilter
master_filter = ChangeFilter(project='OpenSRF', branch="master")
-rel_1_6_filter = ChangeFilter(project='OpenSRF', branch="rel_1_6")
rel_2_0_filter = ChangeFilter(project='OpenSRF', branch="rel_2_0")
-eg_rel_1_6_1_filter = ChangeFilter(project='Evergreen', branch="rel_1_6_1")
+rel_2_1_filter = ChangeFilter(project='OpenSRF', branch="rel_2_1")
eg_rel_2_0_filter = ChangeFilter(project='Evergreen', branch="rel_2_0")
eg_rel_2_1_filter = ChangeFilter(project='Evergreen', branch="rel_2_1")
+eg_rel_2_2_filter = ChangeFilter(project='Evergreen', branch="rel_2_2")
eg_master_filter = ChangeFilter(project='Evergreen', branch="master")
####### SCHEDULERS
# Configure the Schedulers, which decide how to react to incoming changes. In this
# case, just kick off a 'runtests' build
-from buildbot.scheduler import SingleBranchScheduler
+from buildbot.schedulers.basic import SingleBranchScheduler
c['schedulers'] = []
c['schedulers'].append(SingleBranchScheduler(name="osrf-master-full",
treeStableTimer=300,
change_filter=master_filter,
builderNames=["osrf-master-ubuntu-10.04-x86_64"]))
-c['schedulers'].append(SingleBranchScheduler(name="osrf-rel_1_6",
+c['schedulers'].append(SingleBranchScheduler(name="osrf-rel_2_1",
treeStableTimer=300,
- change_filter=rel_1_6_filter,
- builderNames=["osrf-rel_1_6-ubuntu-10.04-x86_64"]))
+ change_filter=rel_2_1_filter,
+ builderNames=["osrf-rel_2_1-ubuntu-10.04-x86_64"]))
c['schedulers'].append(SingleBranchScheduler(name="osrf-rel_2_0",
treeStableTimer=300,
change_filter=rel_2_0_filter,
builderNames=["osrf-rel_2_0-ubuntu-10.04-x86_64"]))
-c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_1_6_1",
+c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_2_2",
treeStableTimer=300,
- change_filter=eg_rel_1_6_1_filter,
+ change_filter=eg_rel_2_2_filter,
builderNames=[
- "evergreen-rel_1_6_1-debian-6.00-x86_64",
- "evergreen-rel_1_6_1-ubuntu-8.04-x86",
- "evergreen-rel_1_6_1-ubuntu-10.04-x86"
+ "evergreen-rel_2_2-debian-6.00-x86_64",
+ "evergreen-rel_2_2-ubuntu-10.04-x86"
]))
c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_2_0",
change_filter=eg_rel_2_0_filter,
builderNames=[
"evergreen-rel_2_0-debian-6.00-x86_64",
- "evergreen-rel_2_0-ubuntu-8.04-x86",
"evergreen-rel_2_0-ubuntu-10.04-x86"
]))
change_filter=eg_rel_2_1_filter,
builderNames=[
"evergreen-rel_2_1-debian-6.00-x86_64",
- "evergreen-rel_2_1-ubuntu-8.04-x86",
"evergreen-rel_2_1-ubuntu-10.04-x86"
]))
change_filter=eg_master_filter,
builderNames=[
"evergreen-master-debian-6.00-x86_64",
- "evergreen-master-ubuntu-8.04-x86",
"evergreen-master-ubuntu-10.04-x86"
]))
# run the Perl unit tests
osrf_factory.addStep(shell.PerlModuleTest(workdir="build/src/perl"))
-# run the Python unit tests (available after rel_1_6)
-def has_python_unit_test(step):
- return step.build.getProperty('branch') != 'rel_1_6'
-
osrf_factory.addStep(python_twisted.Trial(
- doStepIf=has_python_unit_test,
testpath="build",
tests="src/python/tests/json_test.py"))
def has_perl_unit_tests(step):
'Only run Perl tests if there are tests'
- if (step.build.getProperty('branch') == 'rel_1_6_1'):
- return False
- elif (step.build.getProperty('branch') == 'rel_2_0'):
+ if (step.build.getProperty('branch') == 'rel_2_0'):
return False
return True