GoogleGit

blob: d4ae014458ae7881adf398d2c698ecbc4ed762bd [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='mac_src',
  11. branch='master',
  12. treeStableTimer=60,
  13. builderNames=[
  14. 'Mac Builder',
  15. 'Mac Builder (dbg)',
  16. 'Mac GN',
  17. 'Mac GN (dbg)',
  18. ]),
  19. Triggerable(name='mac_rel_trigger', builderNames=[
  20. 'Mac10.6 Tests',
  21. 'Mac10.8 Tests',
  22. 'Mac10.9 Tests',
  23. ]),
  24. Triggerable(name='mac_dbg_trigger', builderNames=[
  25. 'Mac10.9 Tests (dbg)',
  26. ]),
  27. ])
  28. specs = [
  29. {
  30. 'name': 'Mac Builder',
  31. 'triggers': ['mac_rel_trigger'],
  32. },
  33. {'name': 'Mac10.6 Tests'},
  34. {'name': 'Mac10.8 Tests'},
  35. {'name': 'Mac10.9 Tests'},
  36. {
  37. 'name': 'Mac Builder (dbg)',
  38. 'triggers': ['mac_dbg_trigger'],
  39. },
  40. {'name': 'Mac10.9 Tests (dbg)'},
  41. {
  42. 'name': 'Mac GN',
  43. 'recipe': 'chromium_gn',
  44. },
  45. {
  46. 'name': 'Mac GN (dbg)',
  47. 'recipe': 'chromium_gn',
  48. },
  49. ]
  50. c['builders'].extend([
  51. {
  52. 'name': spec['name'],
  53. 'factory': m_annotator.BaseFactory(
  54. spec.get('recipe', 'chromium'),
  55. factory_properties=spec.get('factory_properties'),
  56. triggers=spec.get('triggers')),
  57. 'notify_on_missing': True,
  58. 'category': '3mac',
  59. } for spec in specs
  60. ])