WebKitTools:
[WebKit-https.git] / WebKitTools / BuildSlaveSupport / build.webkit.org-config / webkit / schedulers.py
1 from buildbot.scheduler import Scheduler, Periodic
2
3 def getSchedulers(builders):
4     post_commit_builders = [b['name'] for b in builders if b['name'].startswith('post-commit-')] + ['page-layout-test-mac-os-x']
5     post_commit_builders.sort()
6     
7     periodic_builders = [b['name'] for b in builders if b['name'].startswith('periodic-')]
8     periodic_builders.sort()
9     
10     post_commit = Scheduler(name="post-commit", branch=None, treeStableTimer=90, builderNames=post_commit_builders)
11     periodic = Periodic("periodic", periodic_builders, 6 * 60 * 60)
12
13     return [post_commit, periodic]