Buildbot: Make the acceptance tests dependent on the unit tests passing

This commit is contained in:
Mitchell Hashimoto 2011-11-13 20:57:51 -08:00
parent 98919fbec5
commit 9ee301c525
1 changed files with 9 additions and 3 deletions

View File

@ -4,13 +4,19 @@ schedulers to use for the build master.
""" """
from buildbot.changes.filter import ChangeFilter from buildbot.changes.filter import ChangeFilter
from buildbot.schedulers.basic import SingleBranchScheduler from buildbot.schedulers.basic import (
Dependent,
SingleBranchScheduler)
def get_schedulers(): def get_schedulers():
# Run the unit tests for master # Run the unit tests for master
master_unit = SingleBranchScheduler(name="full", master_unit = SingleBranchScheduler(name="master-unit",
change_filter=ChangeFilter(branch="master"), change_filter=ChangeFilter(branch="master"),
treeStableTimer=60, treeStableTimer=60,
builderNames=["vagrant-master-unit"]) builderNames=["vagrant-master-unit"])
return [master_unit] master_acceptance = Dependent(name="master-acceptance",
upstream=master_unit,
builderNames=["vagrant-master-acceptance"])
return [master_unit, master_acceptance]