OLD | NEW |
---|---|
1 # -*- python -*- | 1 # -*- python -*- |
2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
3 | 3 |
4 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 4 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 | 7 |
8 # READ THIS: | 8 # READ THIS: |
9 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure | 9 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 m_linux['nacl'] = nacl_factory.NativeClientFactory( | 59 m_linux['nacl'] = nacl_factory.NativeClientFactory( |
60 'native_client', 'linux2', use_supplement=True, | 60 'native_client', 'linux2', use_supplement=True, |
61 switched_to_annotations=True).NativeClientFactory | 61 switched_to_annotations=True).NativeClientFactory |
62 m_mac['nacl'] = nacl_factory.NativeClientFactory( | 62 m_mac['nacl'] = nacl_factory.NativeClientFactory( |
63 'native_client', 'darwin', use_supplement=True, | 63 'native_client', 'darwin', use_supplement=True, |
64 switched_to_annotations=True).NativeClientFactory | 64 switched_to_annotations=True).NativeClientFactory |
65 m_arm['nacl'] = nacl_factory.NativeClientFactory( | 65 m_arm['nacl'] = nacl_factory.NativeClientFactory( |
66 'native_client', 'arm', use_supplement=True, | 66 'native_client', 'arm', use_supplement=True, |
67 switched_to_annotations=True).NativeClientFactory | 67 switched_to_annotations=True).NativeClientFactory |
68 | 68 |
69 for platform in [m_win32, m_win64, m_mac, m_linux, m_arm]: | |
70 platform['nacl-toolchain'] = platform['nacl'] | |
71 | |
69 m_win64['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( | 72 m_win64['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( |
70 'native_client', 'wincyg').NativeClientSDKFactory | 73 'native_client', 'wincyg').NativeClientSDKFactory |
71 m_linux['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( | 74 m_linux['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( |
72 'native_client', 'linux2').NativeClientSDKFactory | 75 'native_client', 'linux2').NativeClientSDKFactory |
73 m_mac['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( | 76 m_mac['naclsdk'] = nacl_sdk_factory.NativeClientSDKFactory( |
74 'native_client', 'darwin').NativeClientSDKFactory | 77 'native_client', 'darwin').NativeClientSDKFactory |
75 | 78 |
76 m_win32['gyp'] = gyp_factory.GYPFactory('trunk', | 79 m_win32['gyp'] = gyp_factory.GYPFactory('trunk', |
77 target_platform='win32').GYPFactory | 80 target_platform='win32').GYPFactory |
78 m_win64['gyp'] = gyp_factory.GYPFactory('trunk', | 81 m_win64['gyp'] = gyp_factory.GYPFactory('trunk', |
79 target_platform='win64').GYPFactory | 82 target_platform='win64').GYPFactory |
80 m_mac['gyp'] = gyp_factory.GYPFactory('trunk', | 83 m_mac['gyp'] = gyp_factory.GYPFactory('trunk', |
81 target_platform='darwin').GYPFactory | 84 target_platform='darwin').GYPFactory |
82 m_linux['gyp'] = gyp_factory.GYPFactory('trunk', | 85 m_linux['gyp'] = gyp_factory.GYPFactory('trunk', |
83 target_platform='linux2').GYPFactory | 86 target_platform='linux2').GYPFactory |
84 | 87 |
85 | 88 |
86 def CreateBot(platform, password=config.Master.GetBotPassword(), | 89 def CreateBot(platform, password=config.Master.GetBotPassword(), |
87 builder_name=None, target=None, project=None, | 90 builder_name=None, target=None, project=None, |
Matt Ball
2011/03/30 17:26:55
Shouldn't we just change the default to be 'dbg' i
| |
88 tests=None, options=None, mode=None, timeout=1200, | 91 tests=None, options=None, mode=None, timeout=1200, |
89 slave_names=None, factory_properties=None): | 92 slave_names=None, factory_properties=None): |
90 """Generates and register a builder along with its slave(s). | 93 """Generates and register a builder along with its slave(s). |
91 | 94 |
92 Implicitly register slave_name or slave_names if they weren't registered yet. | 95 Implicitly register slave_name or slave_names if they weren't registered yet. |
93 If none of slave_name or slave_names is supplied, a slave name will be | 96 If none of slave_name or slave_names is supplied, a slave name will be |
94 constructed from the builder name.""" | 97 constructed from the builder name.""" |
95 if platform not in ('win32', 'win64', 'linux', 'mac', 'arm'): | 98 if platform not in ('win32', 'win64', 'linux', 'mac', 'arm'): |
96 raise Exception(platform + ' is not an known os type') | 99 raise Exception(platform + ' is not an known os type') |
100 if not target: | |
101 target = 'dbg' | |
Matt Ball
2011/03/30 17:26:55
Could this be removed if we change the default of
| |
97 # Don't enable auto_reboot for people testing locally. | 102 # Don't enable auto_reboot for people testing locally. |
98 auto_reboot = ActiveMaster.is_production_host | 103 auto_reboot = ActiveMaster.is_production_host |
99 if platform == 'win32': | 104 if platform == 'win32': |
100 factory = m_win32[project] | 105 factory = m_win32[project] |
101 formats = ['msvs'] | 106 formats = ['msvs'] |
102 elif platform == 'win64': | 107 elif platform == 'win64': |
103 factory = m_win64[project] | 108 factory = m_win64[project] |
104 formats = ['msvs'] | 109 formats = ['msvs'] |
105 elif platform == 'linux': | 110 elif platform == 'linux': |
106 factory = m_linux[project] | 111 factory = m_linux[project] |
107 formats = ['scons', 'make'] | 112 formats = ['scons', 'make'] |
108 elif platform == 'mac': | 113 elif platform == 'mac': |
109 factory = m_mac[project] | 114 factory = m_mac[project] |
110 formats = ['xcode'] | 115 formats = ['xcode'] |
111 elif platform == 'arm': | 116 elif platform == 'arm': |
112 factory = m_arm[project] | 117 factory = m_arm[project] |
113 formats = ['scons', 'linux'] | 118 formats = ['scons', 'linux'] |
114 # Arm slaves have issue rebooting continuously. | 119 # Arm slaves have issue rebooting continuously. |
115 auto_reboot = False | 120 auto_reboot = False |
116 if project == 'nacl': | 121 if project in ['nacl', 'nacl-toolchain']: |
117 builder_factory = factory( | 122 builder_factory = factory( |
118 slave_type='Trybot', target=target, tests=tests, options=options, | 123 slave_type='Trybot', target=target, tests=tests, options=options, |
119 mode=mode, compile_timeout=timeout, clobber=True, | 124 mode=mode, compile_timeout=timeout, clobber=True, |
120 factory_properties=factory_properties) | 125 factory_properties=factory_properties) |
121 elif project == 'naclsdk': | 126 elif project == 'naclsdk': |
122 builder_factory = factory( | 127 builder_factory = factory( |
123 slave_type='Trybot', target=target, tests=tests, options=options, | 128 slave_type='Trybot', target=target, tests=tests, options=options, |
124 mode=mode, compile_timeout=timeout, clobber=True, | 129 mode=mode, compile_timeout=timeout, clobber=True, |
125 factory_properties=factory_properties, official_release=False) | 130 factory_properties=factory_properties, official_release=False) |
126 elif project == 'gyp': | 131 elif project == 'gyp': |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 { | 290 { |
286 'name': 'windows', | 291 'name': 'windows', |
287 'core_platform': 'win64', | 292 'core_platform': 'win64', |
288 'builder_names': ['win64'], | 293 'builder_names': ['win64'], |
289 'target': 'native_client_sdk', | 294 'target': 'native_client_sdk', |
290 }, | 295 }, |
291 ], | 296 ], |
292 }, | 297 }, |
293 { | 298 { |
294 'name': 'gyp', | 299 'name': 'gyp', |
295 'tests': [], | |
296 'platforms': [ | 300 'platforms': [ |
297 { | 301 { |
298 'name': 'linux', | 302 'name': 'linux', |
299 'builder_names': ['hardy32', 'hardy64', 'lucid32', 'lucid64'], | 303 'builder_names': ['hardy32', 'hardy64', 'lucid32', 'lucid64'], |
300 }, | 304 }, |
301 { | 305 { |
302 'name': 'mac', | 306 'name': 'mac', |
307 'builder_names': ['mac'], | |
303 }, | 308 }, |
304 { | 309 { |
305 'name': 'win32', | 310 'name': 'win32', |
311 'builder_names': ['win32'], | |
306 }, | 312 }, |
307 { | 313 { |
308 'name': 'win64', | 314 'name': 'win64', |
315 'builder_names': ['win64'], | |
309 }, | 316 }, |
310 ], | 317 ], |
311 }, | 318 }, |
312 ] | 319 ] |
313 | 320 |
314 for project in projects: | 321 for project in projects: |
315 for platform in project['platforms']: | 322 for platform in project['platforms']: |
316 true_builder_names = platform.get('builder_names', [platform['name']]) | 323 true_builder_names = platform.get('builder_names', [platform['name']]) |
317 slave_names = [GetSlaveName(true_builder_names, x) | 324 slave_names = [GetSlaveName(true_builder_names, x) |
318 for x in range(1, number_slaves + 1)] | 325 for x in range(1, number_slaves + 1)] |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
459 | 466 |
460 | 467 |
461 ####### PROJECT IDENTITY | 468 ####### PROJECT IDENTITY |
462 | 469 |
463 # The 'projectURL' string will be used to provide a link | 470 # The 'projectURL' string will be used to provide a link |
464 # from buildbot HTML pages to your project's home page. | 471 # from buildbot HTML pages to your project's home page. |
465 c['projectURL'] = 'http://go/ChromeTryServer' | 472 c['projectURL'] = 'http://go/ChromeTryServer' |
466 | 473 |
467 # Buildbot master url: | 474 # Buildbot master url: |
468 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.nacl/' | 475 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.nacl/' |
OLD | NEW |