# 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
WebRTC: Fix builder triggering in client.webrtc.fyi

In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.

TBR=phoglund@chromium.org

Review URL: https://codereview.chromium.org/875733002

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98
