2011-11-12 18:20:07 +00:00
|
|
|
"""
|
|
|
|
This module contains the logic which returns the set of
|
|
|
|
schedulers to use for the build master.
|
|
|
|
"""
|
|
|
|
|
2011-11-12 21:18:19 +00:00
|
|
|
from buildbot.changes.filter import ChangeFilter
|
2011-11-14 04:57:51 +00:00
|
|
|
from buildbot.schedulers.basic import (
|
|
|
|
Dependent,
|
|
|
|
SingleBranchScheduler)
|
2011-11-12 21:18:19 +00:00
|
|
|
|
2011-11-12 18:20:07 +00:00
|
|
|
def get_schedulers():
|
2011-11-13 00:51:00 +00:00
|
|
|
# Run the unit tests for master
|
2011-11-14 04:57:51 +00:00
|
|
|
master_unit = SingleBranchScheduler(name="master-unit",
|
2011-11-12 21:18:19 +00:00
|
|
|
change_filter=ChangeFilter(branch="master"),
|
|
|
|
treeStableTimer=60,
|
2011-11-13 00:51:00 +00:00
|
|
|
builderNames=["vagrant-master-unit"])
|
|
|
|
|
2011-11-14 04:57:51 +00:00
|
|
|
master_acceptance = Dependent(name="master-acceptance",
|
|
|
|
upstream=master_unit,
|
|
|
|
builderNames=["vagrant-master-acceptance"])
|
|
|
|
|
|
|
|
return [master_unit, master_acceptance]
|