GoogleGit

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