OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 from master import master_config | 5 from master import master_config |
| 6 from master.factory import chromium_factory |
6 from master.factory import webrtc_factory | 7 from master.factory import webrtc_factory |
7 | 8 |
8 defaults = {} | 9 defaults = {} |
9 | 10 |
10 | 11 |
11 def ConfigureBuilders(c, svn_url, branch, category, custom_deps_list=None): | 12 def ConfigureBuilders(c, svn_url, branch, category, custom_deps_list=None): |
12 def linux(): | 13 def linux(): |
13 return webrtc_factory.WebRTCFactory('src/out', 'linux2', svn_url, | 14 return webrtc_factory.WebRTCFactory('src/out', 'linux2', svn_url, |
14 branch, custom_deps_list) | 15 branch, custom_deps_list) |
| 16 def android(): |
| 17 return webrtc_factory.WebRTCFactory('', 'linux2', svn_url, |
| 18 branch, nohooks_on_update=True, |
| 19 target_os='android') |
| 20 |
15 helper = master_config.Helper(defaults) | 21 helper = master_config.Helper(defaults) |
16 B = helper.Builder | 22 B = helper.Builder |
17 F = helper.Factory | 23 F = helper.Factory |
18 S = helper.Scheduler | 24 S = helper.Scheduler |
19 | 25 |
20 scheduler = 'webrtc_%s_linux_scheduler' % category | 26 scheduler = 'webrtc_%s_linux_scheduler' % category |
21 S(scheduler, branch=branch, treeStableTimer=0) | 27 S(scheduler, branch=branch, treeStableTimer=0) |
22 | 28 |
23 normal_tests = [ | 29 normal_tests = [ |
24 'audio_coding_module_test', | 30 'audio_coding_module_test', |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 {'GYP_DEFINES': 'build_for_tool=tsan'}})) | 113 {'GYP_DEFINES': 'build_for_tool=tsan'}})) |
108 B('LinuxAsan', 'linux_asan_factory', scheduler=scheduler) | 114 B('LinuxAsan', 'linux_asan_factory', scheduler=scheduler) |
109 F('linux_asan_factory', linux().WebRTCFactory( | 115 F('linux_asan_factory', linux().WebRTCFactory( |
110 target='Release', | 116 target='Release', |
111 tests=normal_tests, | 117 tests=normal_tests, |
112 factory_properties={'asan': True, | 118 factory_properties={'asan': True, |
113 'gclient_env': | 119 'gclient_env': |
114 {'GYP_DEFINES': ('asan=1 release_extra_cflags=-g ' | 120 {'GYP_DEFINES': ('asan=1 release_extra_cflags=-g ' |
115 ' linux_use_tcmalloc=0 ')}})) | 121 ' linux_use_tcmalloc=0 ')}})) |
116 | 122 |
| 123 # Android. |
| 124 B('Android NDK', 'android_ndk_factory', scheduler=scheduler) |
| 125 F('android_ndk_factory', android().ChromiumAnnotationFactory( |
| 126 target='Debug', |
| 127 slave_type='AnnotatedBuilderTester', |
| 128 annotation_script='src/build/android/buildbot/bb_run_bot.py', |
| 129 factory_properties={ |
| 130 'android_bot_id': 'webrtc-builder-dbg', |
| 131 })) |
| 132 |
117 # ChromeOS. | 133 # ChromeOS. |
118 B('CrOS', 'chromeos_factory', scheduler=scheduler) | 134 B('CrOS', 'chromeos_factory', scheduler=scheduler) |
119 F('chromeos_factory', linux().WebRTCFactory( | 135 F('chromeos_factory', linux().WebRTCFactory( |
120 target='Debug', | 136 target='Debug', |
121 tests=normal_tests, | 137 tests=normal_tests, |
122 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) | 138 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) |
123 | 139 |
124 helper.Update(c) | 140 helper.Update(c) |
OLD | NEW |