GoogleGit

blob: e8b15eb937ebd76064b1195263401ca8eb3fd9e5 [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. 'Linux ARM',
  21. 'Cast Linux',
  22. ]),
  23. Triggerable(name='linux_rel_trigger', builderNames=[
  24. 'Linux Tests',
  25. ]),
  26. Triggerable(name='linux_dbg_32_trigger', builderNames=[
  27. 'Linux Tests (dbg)(1)(32)',
  28. ]),
  29. Triggerable(name='linux_dbg_trigger', builderNames=[
  30. 'Linux Tests (dbg)(1)',
  31. ]),
  32. ])
  33. specs = [
  34. {'name': 'Linux Builder', 'triggers': ['linux_rel_trigger'], },
  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'},
  41. {'name': 'Linux GN Clobber'},
  42. {'name': 'Linux GN (dbg)'},
  43. {'name': 'Linux ARM'},
  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. ])