GoogleGit

blob: 463ce3c59cd8bf5735406f27ff9ccc7618e3a9b9 [file] [log] [blame]
  1. # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. from buildbot.scheduler import Triggerable
  5. from buildbot.schedulers.basic import SingleBranchScheduler
  6. from master.factory import annotator_factory
  7. m_annotator = annotator_factory.AnnotatorFactory()
  8. def Update(_config, active_master, c):
  9. c['schedulers'].extend([
  10. SingleBranchScheduler(name='linux_src',
  11. branch='master',
  12. treeStableTimer=60,
  13. builderNames=[
  14. 'Linux Builder',
  15. 'Linux Builder (dbg)(32)',
  16. 'Linux Builder (dbg)',
  17. 'Linux GN',
  18. 'Linux GN Clobber',
  19. 'Linux GN (dbg)',
  20. 'Cast Linux',
  21. ]),
  22. ])
  23. specs = [
  24. {'name': 'Linux Builder'},
  25. {'name': 'Linux Tests'},
  26. {'name': 'Linux Builder (dbg)(32)'},
  27. {'name': 'Linux Tests (dbg)(1)(32)'},
  28. {'name': 'Linux Builder (dbg)'},
  29. {'name': 'Linux Tests (dbg)(1)'},
  30. {'name': 'Linux GN'},
  31. {'name': 'Linux GN Clobber'},
  32. {'name': 'Linux GN (dbg)'},
  33. {'name': 'Cast Linux'},
  34. ]
  35. c['builders'].extend([
  36. {
  37. 'name': spec['name'],
  38. 'factory': m_annotator.BaseFactory(
  39. spec.get('recipe', 'chromium'),
  40. factory_properties=spec.get('factory_properties')),
  41. 'notify_on_missing': True,
  42. 'category': '4linux',
  43. } for spec in specs
  44. ])