OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # These modules come from scripts, which must be in the PYTHONPATH. | 5 # These modules come from scripts, which must be in the PYTHONPATH. |
6 from master import master_utils | 6 from master import master_utils |
7 from master import slaves_list | 7 from master import slaves_list |
8 from master.builders_pools import BuildersPools | 8 from master.builders_pools import BuildersPools |
9 from master.factory import chromium_factory | 9 from master.factory import chromium_factory |
10 from master.factory import libyuv_factory | 10 from master.factory import libyuv_factory |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 def linux(): return libyuv_factory.LibyuvFactory('src/out', 'linux2') | 35 def linux(): return libyuv_factory.LibyuvFactory('src/out', 'linux2') |
36 def mac(): return libyuv_factory.LibyuvFactory('src/out', 'darwin') | 36 def mac(): return libyuv_factory.LibyuvFactory('src/out', 'darwin') |
37 def mac_ios(): return libyuv_factory.LibyuvFactory('src/out', 'darwin', | 37 def mac_ios(): return libyuv_factory.LibyuvFactory('src/out', 'darwin', |
38 target_os='ios') | 38 target_os='ios') |
39 def win(): return libyuv_factory.LibyuvFactory('src/out', 'win32') | 39 def win(): return libyuv_factory.LibyuvFactory('src/out', 'win32') |
40 def android(): | 40 def android(): |
41 return libyuv_factory.LibyuvFactory('', 'linux2', nohooks_on_update=True, | 41 return libyuv_factory.LibyuvFactory('', 'linux2', nohooks_on_update=True, |
42 target_os='android') | 42 target_os='android') |
43 tests = ['libyuv_unittest'] | 43 tests = ['libyuv_unittest'] |
44 asan_gyp_defines = 'asan=1 release_extra_cflags=-g linux_use_tcmalloc=0' | |
45 options = ['--clobber-post-fail'] | 44 options = ['--clobber-post-fail'] |
46 ninja_options = options + ['--build-tool=ninja'] | 45 ninja_options = options + ['--build-tool=ninja'] |
47 win_factory_prop = { | 46 win_factory_prop = { |
48 'gclient_env': {'GYP_GENERATOR_FLAGS': 'msvs_error_on_missing_sources=1'}, | 47 'gclient_env': {'GYP_GENERATOR_FLAGS': 'msvs_error_on_missing_sources=1'}, |
49 } | 48 } |
50 mac_ios_factory_properties = { | 49 mac_ios_factory_properties = { |
51 'gclient_env': { | 50 'gclient_env': { |
52 'GYP_CROSSCOMPILE': '1', | 51 'GYP_CROSSCOMPILE': '1', |
53 'GYP_DEFINES': 'OS=ios target_arch=armv7', | 52 'GYP_DEFINES': 'OS=ios target_arch=armv7', |
54 } | 53 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 b_mac_asan = { | 122 b_mac_asan = { |
124 'name': 'mac_asan', | 123 'name': 'mac_asan', |
125 'factory': mac().LibyuvFactory( | 124 'factory': mac().LibyuvFactory( |
126 target='Release', | 125 target='Release', |
127 slave_type='Trybot', | 126 slave_type='Trybot', |
128 options=ninja_options, | 127 options=ninja_options, |
129 tests=tests, | 128 tests=tests, |
130 factory_properties={ | 129 factory_properties={ |
131 'asan': True, | 130 'asan': True, |
132 'gclient_env': {'GYP_DEFINES': asan_gyp_defines}, | 131 'gclient_env': {'GYP_DEFINES': 'asan=1 release_extra_cflags=-g'}, |
133 }) | 132 }) |
134 } | 133 } |
135 | 134 |
136 b_ios = { | 135 b_ios = { |
137 'name': 'ios', | 136 'name': 'ios', |
138 'factory': mac_ios().LibyuvFactory( | 137 'factory': mac_ios().LibyuvFactory( |
139 target='Debug-iphoneos', | 138 target='Debug-iphoneos', |
140 slave_type='Trybot', | 139 slave_type='Trybot', |
141 options=ninja_options, | 140 options=ninja_options, |
142 factory_properties=mac_ios_factory_properties) | 141 factory_properties=mac_ios_factory_properties) |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 197 |
199 b_linux_asan = { | 198 b_linux_asan = { |
200 'name': 'linux_asan', | 199 'name': 'linux_asan', |
201 'factory': linux().LibyuvFactory( | 200 'factory': linux().LibyuvFactory( |
202 target='Release', | 201 target='Release', |
203 slave_type='Trybot', | 202 slave_type='Trybot', |
204 options=ninja_options, | 203 options=ninja_options, |
205 tests=tests, | 204 tests=tests, |
206 factory_properties={ | 205 factory_properties={ |
207 'asan': True, | 206 'asan': True, |
208 'gclient_env': {'GYP_DEFINES': asan_gyp_defines}, | 207 'gclient_env': {'GYP_DEFINES': ('asan=1 release_extra_cflags=-g ' |
| 208 'use_allocator=none'), |
| 209 }, |
209 }) | 210 }) |
210 } | 211 } |
211 | 212 |
212 b_android = { | 213 b_android = { |
213 'name': 'android', | 214 'name': 'android', |
214 'factory': android().ChromiumAnnotationFactory( | 215 'factory': android().ChromiumAnnotationFactory( |
215 target='Debug', | 216 target='Debug', |
216 slave_type='AnnotatedTrybot', | 217 slave_type='AnnotatedTrybot', |
217 annotation_script='src/build/android/buildbot/bb_run_bot.py', | 218 annotation_script='src/build/android/buildbot/bb_run_bot.py', |
218 factory_properties={ | 219 factory_properties={ |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 # Must be at least 2x the number of slaves. | 353 # Must be at least 2x the number of slaves. |
353 c['eventHorizon'] = 100 | 354 c['eventHorizon'] = 100 |
354 # Must be at least 2x the number of on-going builds. | 355 # Must be at least 2x the number of on-going builds. |
355 c['buildCacheSize'] = 100 | 356 c['buildCacheSize'] = 100 |
356 | 357 |
357 ####### PROJECT IDENTITY | 358 ####### PROJECT IDENTITY |
358 | 359 |
359 # The 'projectURL' string will be used to provide a link | 360 # The 'projectURL' string will be used to provide a link |
360 # from buildbot HTML pages to your project's home page. | 361 # from buildbot HTML pages to your project's home page. |
361 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 362 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
OLD | NEW |