# Copyright (c) 2012 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 master import master_config
from master.factory import chromium_factory

defaults = {}

helper = master_config.Helper(defaults)
B = helper.Builder
F = helper.Factory
S = helper.Scheduler

def linux(): return chromium_factory.ChromiumFactory('src/build', 'linux2')


################################################################################
## Release
################################################################################

defaults['category'] = '9linux latest'

#
# Main release scheduler for webkit
#
S('s10_webkit_rel', branch='trunk', treeStableTimer=60)

#
# ChromiumOS Rel Builder
#
B('Linux ChromiumOS Builder', 'f_chromiumos_rel', scheduler='s10_webkit_rel',
    auto_reboot=False)
F('f_chromiumos_rel', linux().ChromiumOSWebkitLatestFactory(
    slave_type='Builder',
    tests=[],
    options=['--compiler=goma'],
    factory_properties={
        'gclient_env': {'GYP_DEFINES': 'chromeos=1'}
    }))


def Update(config, active_master, c):
  return helper.Update(c)

@@ -1004,16 +1004,119 @@
 er=goma'
+,%0A      'DumpRenderTree',%0A      'test_shell',%0A      'test_shell_tests',%0A      'webkit_unit_tests',%0A    
 %5D,%0A    f

fix build targets for new ChromiumOS WebKit Canary builder.