GoogleGit

blob: e0674ffcacf004d0b84f243e1cd1cd42bbc380f5 [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. 'Mac10.10 Tests',
  24. ]),
  25. Triggerable(name='mac_dbg_trigger', builderNames=[
  26. 'Mac10.9 Tests (dbg)',
  27. ]),
  28. ])
  29. specs = [
  30. {
  31. 'name': 'Mac Builder',
  32. 'triggers': ['mac_rel_trigger'],
  33. },
  34. {'name': 'Mac10.6 Tests'},
  35. {'name': 'Mac10.8 Tests'},
  36. {'name': 'Mac10.9 Tests'},
  37. {'name': 'Mac10.10 Tests'},
  38. {
  39. 'name': 'Mac Builder (dbg)',
  40. 'triggers': ['mac_dbg_trigger'],
  41. },
  42. {'name': 'Mac10.9 Tests (dbg)'},
  43. {'name': 'Mac GN'},
  44. {'name': 'Mac GN (dbg)'},
  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': '3mac',
  55. } for spec in specs
  56. ])