GoogleGit

blob: a62b9a7e078476b82fb24836e5e2e838b62caa59 [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. ]),
  21. Triggerable(name='linux_rel_trigger', builderNames=[
  22. 'Linux Tests',
  23. ]),
  24. Triggerable(name='linux_dbg_32_trigger', builderNames=[
  25. 'Linux Tests (dbg)(1)(32)',
  26. ]),
  27. Triggerable(name='linux_dbg_trigger', builderNames=[
  28. 'Linux Tests (dbg)(1)',
  29. ]),
  30. ])
  31. specs = [
  32. {
  33. 'name': 'Linux Builder',
  34. 'triggers': ['linux_rel_trigger'],
  35. },
  36. {'name': 'Linux Tests'},
  37. {'name': 'Linux Builder (dbg)(32)', 'triggers': ['linux_dbg_32_trigger']},
  38. {'name': 'Linux Tests (dbg)(1)(32)'},
  39. {'name': 'Linux Builder (dbg)', 'triggers': ['linux_dbg_trigger']},
  40. {'name': 'Linux Tests (dbg)(1)'},
  41. {'name': 'Linux GN', 'recipe': 'chromium_gn'},
  42. {'name': 'Linux GN Clobber', 'recipe': 'chromium_gn'},
  43. {'name': 'Linux GN (dbg)', 'recipe': 'chromium_gn'},
  44. {'name': 'Cast Linux'},
  45. ]
  46. c['builders'].extend([
  47. {
  48. 'name': spec['name'],
  49. 'factory': m_annotator.BaseFactory(
  50. spec.get('recipe', 'chromium'),
  51. factory_properties=spec.get('factory_properties'),
  52. triggers=spec.get('triggers')),
  53. 'notify_on_missing': True,
  54. 'category': '4linux',
  55. } for spec in specs
  56. ])