OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 # These modules come from scripts, which must be in the PYTHONPATH. | 10 # These modules come from scripts, which must be in the PYTHONPATH. |
(...skipping 26 matching lines...) Expand all Loading... |
37 ####### BUILDERS | 37 ####### BUILDERS |
38 url = config.Master.webrtc_url | 38 url = config.Master.webrtc_url |
39 branch = 'trunk' | 39 branch = 'trunk' |
40 | 40 |
41 def linux(): | 41 def linux(): |
42 return webrtc_factory.WebRTCFactory('src/build', 'linux2', url, branch) | 42 return webrtc_factory.WebRTCFactory('src/build', 'linux2', url, branch) |
43 def mac(): | 43 def mac(): |
44 return webrtc_factory.WebRTCFactory('src/build', 'darwin', url, branch) | 44 return webrtc_factory.WebRTCFactory('src/build', 'darwin', url, branch) |
45 def win(): | 45 def win(): |
46 return webrtc_factory.WebRTCFactory('src/build', 'win32', url, branch) | 46 return webrtc_factory.WebRTCFactory('src/build', 'win32', url, branch) |
47 | 47 def android(): |
| 48 return webrtc_factory.WebRTCFactory('src/build', 'linux2', url, branch, |
| 49 nohooks_on_update=True, |
| 50 target_os='android') |
48 normal_tests = [ | 51 normal_tests = [ |
49 'audio_coding_module_test', | 52 'audio_coding_module_test', |
50 'audio_coding_unittests', | 53 'audio_coding_unittests', |
51 'audio_decoder_unittests', | 54 'audio_decoder_unittests', |
52 'audioproc_unittest', | 55 'audioproc_unittest', |
53 'bitrate_controller_unittests', | 56 'bitrate_controller_unittests', |
54 'common_video_unittests', | 57 'common_video_unittests', |
55 'media_file_unittests', | 58 'media_file_unittests', |
56 'metrics_unittests', | 59 'metrics_unittests', |
57 'neteq_unittests', | 60 'neteq_unittests', |
(...skipping 30 matching lines...) Expand all Loading... |
88 win_factory_prop = { | 91 win_factory_prop = { |
89 'gclient_env': {'GYP_GENERATOR_FLAGS': 'msvs_error_on_missing_sources=1'} | 92 'gclient_env': {'GYP_GENERATOR_FLAGS': 'msvs_error_on_missing_sources=1'} |
90 } | 93 } |
91 | 94 |
92 # Set up all the builders. | 95 # Set up all the builders. |
93 | 96 |
94 # Windows. | 97 # Windows. |
95 b_win = { | 98 b_win = { |
96 'name': 'win', | 99 'name': 'win', |
97 'factory': win().WebRTCFactory( | 100 'factory': win().WebRTCFactory( |
98 target='Debug', | 101 target='Debug', |
99 slave_type='Trybot', | 102 slave_type='Trybot', |
100 options=options, | 103 options=options, |
101 project=win_project, | 104 project=win_project, |
102 tests=normal_tests, | 105 tests=normal_tests, |
103 factory_properties=win_factory_prop) | 106 factory_properties=win_factory_prop) |
104 } | 107 } |
105 | 108 |
106 b_win_rel = { | 109 b_win_rel = { |
107 'name': 'win_rel', | 110 'name': 'win_rel', |
108 'factory': win().WebRTCFactory( | 111 'factory': win().WebRTCFactory( |
109 target='Release', | 112 target='Release', |
110 slave_type='Trybot', | 113 slave_type='Trybot', |
111 options=options, | 114 options=options, |
112 project=win_project, | 115 project=win_project, |
113 tests=normal_tests, | 116 tests=normal_tests, |
114 factory_properties=win_factory_prop) | 117 factory_properties=win_factory_prop) |
115 } | 118 } |
116 | 119 |
117 # Mac. | 120 # Mac. |
118 b_mac = { | 121 b_mac = { |
119 'name': 'mac', | 122 'name': 'mac', |
120 'factory': mac().WebRTCFactory( | 123 'factory': mac().WebRTCFactory( |
121 target='Debug', | 124 target='Debug', |
122 slave_type='Trybot', | 125 slave_type='Trybot', |
123 options=mac_options, | 126 options=mac_options, |
124 tests=normal_tests, | 127 tests=normal_tests, |
125 factory_properties=mac_factory_prop) | 128 factory_properties=mac_factory_prop) |
126 } | 129 } |
127 | 130 |
128 b_mac_rel = { | 131 b_mac_rel = { |
129 'name': 'mac_rel', | 132 'name': 'mac_rel', |
130 'factory': mac().WebRTCFactory( | 133 'factory': mac().WebRTCFactory( |
131 target='Release', | 134 target='Release', |
132 slave_type='Trybot', | 135 slave_type='Trybot', |
133 options=mac_options, | 136 options=mac_options, |
134 tests=normal_tests, | 137 tests=normal_tests, |
135 factory_properties=mac_factory_prop) | 138 factory_properties=mac_factory_prop) |
136 } | 139 } |
137 | 140 |
138 b_mac_asan = { | 141 b_mac_asan = { |
139 'name': 'mac_asan', | 142 'name': 'mac_asan', |
140 'factory': mac().WebRTCFactory( | 143 'factory': mac().WebRTCFactory( |
141 target='Release', | 144 target='Release', |
142 slave_type='Trybot', | 145 slave_type='Trybot', |
143 options=mac_options, | 146 options=mac_options, |
144 tests=normal_tests, | 147 tests=normal_tests, |
145 factory_properties={ | 148 factory_properties={ |
146 'asan': True, | 149 'asan': True, |
147 'gclient_env': {'GYP_DEFINES': asan_gyp_defines, | 150 'gclient_env': {'GYP_DEFINES': asan_gyp_defines, |
148 'GYP_GENERATORS': 'ninja'}, | 151 'GYP_GENERATORS': 'ninja'}, |
149 }) | 152 }) |
150 } | 153 } |
151 | 154 |
152 # Linux. | 155 # Linux. |
153 b_linux = { | 156 b_linux = { |
154 'name': 'linux', | 157 'name': 'linux', |
155 'factory': linux().WebRTCFactory( | 158 'factory': linux().WebRTCFactory( |
156 target='Debug', | 159 target='Debug', |
157 slave_type='Trybot', | 160 slave_type='Trybot', |
158 options=options, | 161 options=options, |
159 tests=normal_tests) | 162 tests=normal_tests) |
160 } | 163 } |
161 | 164 |
162 b_linux_rel = { | 165 b_linux_rel = { |
163 'name': 'linux_rel', | 166 'name': 'linux_rel', |
164 'factory': linux().WebRTCFactory( | 167 'factory': linux().WebRTCFactory( |
165 target='Release', | 168 target='Release', |
166 slave_type='Trybot', | 169 slave_type='Trybot', |
167 tests=normal_tests) | 170 tests=normal_tests) |
168 } | 171 } |
169 | 172 |
170 b_linux_memcheck = { | 173 b_linux_memcheck = { |
171 'name': 'linux_memcheck', | 174 'name': 'linux_memcheck', |
172 'factory': linux().WebRTCFactory( | 175 'factory': linux().WebRTCFactory( |
173 target='Release', | 176 target='Release', |
174 slave_type='Trybot', | 177 slave_type='Trybot', |
175 tests=memcheck_tests, | 178 tests=memcheck_tests, |
176 factory_properties={ | 179 factory_properties={ |
177 'needs_valgrind': True, | 180 'needs_valgrind': True, |
(...skipping 18 matching lines...) Expand all Loading... |
196 'factory': linux().WebRTCFactory( | 199 'factory': linux().WebRTCFactory( |
197 target='Release', | 200 target='Release', |
198 slave_type='Trybot', | 201 slave_type='Trybot', |
199 tests=normal_tests, | 202 tests=normal_tests, |
200 factory_properties={ | 203 factory_properties={ |
201 'asan': True, | 204 'asan': True, |
202 'gclient_env': {'GYP_DEFINES': asan_gyp_defines}, | 205 'gclient_env': {'GYP_DEFINES': asan_gyp_defines}, |
203 }) | 206 }) |
204 } | 207 } |
205 | 208 |
| 209 b_android_ndk = { |
| 210 'name': 'android_ndk', |
| 211 'factory': android().WebRTCAndroidNDKFactory( |
| 212 target='Debug', |
| 213 slave_type='AnnotatedTrybot', |
| 214 annotation_script='src/build/android/buildbot/bb_run_bot.py', |
| 215 factory_properties={ |
| 216 # This ID is not in bb_run_bot.py yet so it will use the generic |
| 217 # builder config for now. |
| 218 'android_bot_id': 'webrtc-builder', |
| 219 'buildtool': 'ninja', |
| 220 'ndk_apps' : ['src/webrtc/video_engine/test/android/build_demo.py'] |
| 221 }) |
| 222 } |
| 223 |
206 c['builders'] = [ | 224 c['builders'] = [ |
207 b_win, | 225 b_win, |
208 b_win_rel, | 226 b_win_rel, |
209 b_mac, | 227 b_mac, |
210 b_mac_rel, | 228 b_mac_rel, |
211 b_mac_asan, | 229 b_mac_asan, |
212 b_linux, | 230 b_linux, |
213 b_linux_rel, | 231 b_linux_rel, |
214 b_linux_memcheck, | 232 b_linux_memcheck, |
215 b_linux_tsan, | 233 b_linux_tsan, |
216 b_linux_asan, | 234 b_linux_asan, |
| 235 b_android_ndk, |
217 ] | 236 ] |
218 | 237 |
219 # Slaves are loaded from slaves.cfg. | 238 # Slaves are loaded from slaves.cfg. |
220 slaves = slaves_list.SlavesList('slaves.cfg', 'WebRTCTryServer') | 239 slaves = slaves_list.SlavesList('slaves.cfg', 'WebRTCTryServer') |
221 | 240 |
222 for builder in c['builders']: | 241 for builder in c['builders']: |
223 # Associate the slaves to the builders. The configuration is in slaves.cfg. | 242 # Associate the slaves to the builders. The configuration is in slaves.cfg. |
224 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 243 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
225 # Don't enable auto_reboot for our bots (Chrome uses it since they don't trust | 244 # Don't enable auto_reboot for our bots (Chrome uses it since they don't trust |
226 # their unit tests to clean up properly) | 245 # their unit tests to clean up properly) |
(...skipping 16 matching lines...) Expand all Loading... |
243 pools[pool_name].append('win') | 262 pools[pool_name].append('win') |
244 pools[pool_name].append('win_rel') | 263 pools[pool_name].append('win_rel') |
245 pools[pool_name].append('mac') | 264 pools[pool_name].append('mac') |
246 pools[pool_name].append('mac_rel') | 265 pools[pool_name].append('mac_rel') |
247 pools[pool_name].append('mac_asan') | 266 pools[pool_name].append('mac_asan') |
248 pools[pool_name].append('linux') | 267 pools[pool_name].append('linux') |
249 pools[pool_name].append('linux_rel') | 268 pools[pool_name].append('linux_rel') |
250 pools[pool_name].append('linux_memcheck') | 269 pools[pool_name].append('linux_memcheck') |
251 pools[pool_name].append('linux_tsan') | 270 pools[pool_name].append('linux_tsan') |
252 pools[pool_name].append('linux_asan') | 271 pools[pool_name].append('linux_asan') |
| 272 pools[pool_name].append('android_ndk') |
253 return pools | 273 return pools |
254 | 274 |
255 # Configure the Schedulers; | 275 # Configure the Schedulers; |
256 c['schedulers'] = [] | 276 c['schedulers'] = [] |
257 | 277 |
258 last_good_urls = {'webrtc': ActiveMaster.last_good_url} | 278 last_good_urls = {'webrtc': ActiveMaster.last_good_url} |
259 code_review_sites = {'webrtc': ActiveMaster.code_review_site} | 279 code_review_sites = {'webrtc': ActiveMaster.code_review_site} |
260 | 280 |
261 c['schedulers'].append(TryJobHTTP( | 281 c['schedulers'].append(TryJobHTTP( |
262 name='webrtc_try_job_http', | 282 name='webrtc_try_job_http', |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 c['buildCacheSize'] = 100 | 324 c['buildCacheSize'] = 100 |
305 | 325 |
306 ####### PROJECT IDENTITY | 326 ####### PROJECT IDENTITY |
307 | 327 |
308 # The 'projectURL' string will be used to provide a link | 328 # The 'projectURL' string will be used to provide a link |
309 # from buildbot HTML pages to your project's home page. | 329 # from buildbot HTML pages to your project's home page. |
310 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 330 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
311 | 331 |
312 # Buildbot master url: | 332 # Buildbot master url: |
313 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.webrtc/' | 333 c['buildbotURL'] = 'http://build.chromium.org/p/tryserver.webrtc/' |
OLD | NEW |