# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from buildbot.schedulers.basic import SingleBranchScheduler

from master.factory import annotator_factory

m_annotator = annotator_factory.AnnotatorFactory()

def Update(c):
  c['schedulers'].extend([
      SingleBranchScheduler(name='webrtc_windows_scheduler',
                            branch='trunk',
                            treeStableTimer=0,
                            builderNames=['Win32 Debug (parallel)']),
  ])

  specs = [
    {
      'name': 'Win32 Debug (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win32 Release (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win64 Debug (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win64 Release (parallel)',
      'slavebuilddir': 'win',
    },
  ]

  c['builders'].extend([
      {
        'name': spec['name'],
        'factory': m_annotator.BaseFactory('webrtc/standalone'),
        'notify_on_missing': True,
        'category': 'win',
        'slavebuilddir': spec['slavebuilddir'],
      } for spec in specs
  ])

# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from buildbot.schedulers.basic import SingleBranchScheduler

from master.factory import annotator_factory

m_annotator = annotator_factory.AnnotatorFactory()

def Update(c):
  c['schedulers'].extend([
      SingleBranchScheduler(name='webrtc_windows_scheduler',
                            branch='trunk',
                            treeStableTimer=0,
                            builderNames=[
                              'Win32 Debug (parallel)',
                              'Win32 Release (parallel)',
                              'Win64 Debug (parallel)',
                              'Win64 Release (parallel)',
                            ]),
  ])

  specs = [
    {
      'name': 'Win32 Debug (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win32 Release (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win64 Debug (parallel)',
      'slavebuilddir': 'win',
    },
    {
      'name': 'Win64 Release (parallel)',
      'slavebuilddir': 'win',
    },
  ]

  c['builders'].extend([
      {
        'name': spec['name'],
        'factory': m_annotator.BaseFactory('webrtc/standalone'),
        'notify_on_missing': True,
        'category': 'win',
        'slavebuilddir': spec['slavebuilddir'],
      } for spec in specs
  ])

Fix builder triggering in client.webrtc.fyi