| 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 chromium_factory |
| 7 from master.factory import webrtc_factory | 7 from master.factory import webrtc_factory |
| 8 | 8 |
| 9 defaults = {} | 9 defaults = {} |
| 10 | 10 |
| 11 | 11 |
| 12 def ConfigureBuilders(c, svn_url, branch, custom_deps_list=None): | 12 def linux(): |
| 13 def linux(): | 13 return webrtc_factory.WebRTCFactory('src/out', 'linux2') |
| 14 return webrtc_factory.WebRTCFactory('src/out', 'linux2', svn_url, | 14 def android(): |
| 15 branch, custom_deps_list) | 15 return webrtc_factory.WebRTCFactory('', 'linux2', nohooks_on_update=True, |
| 16 def android(): | 16 target_os='android') |
| 17 return webrtc_factory.WebRTCFactory('', 'linux2', svn_url, | |
| 18 branch, nohooks_on_update=True, | |
| 19 target_os='android') | |
| 20 | 17 |
| 21 helper = master_config.Helper(defaults) | 18 helper = master_config.Helper(defaults) |
| 22 B = helper.Builder | 19 B = helper.Builder |
| 23 F = helper.Factory | 20 F = helper.Factory |
| 24 S = helper.Scheduler | 21 S = helper.Scheduler |
| 25 | 22 |
| 26 scheduler = 'webrtc_linux_scheduler' | 23 scheduler = 'webrtc_linux_scheduler' |
| 27 S(scheduler, branch=branch, treeStableTimer=0) | 24 S(scheduler, branch='trunk', treeStableTimer=0) |
| 28 | 25 |
| 29 tests = [ | 26 tests = [ |
| 30 'audio_decoder_unittests', | 27 'audio_decoder_unittests', |
| 31 'common_audio_unittests', | 28 'common_audio_unittests', |
| 32 'common_video_unittests', | 29 'common_video_unittests', |
| 33 'metrics_unittests', | 30 'metrics_unittests', |
| 34 'modules_integrationtests', | 31 'modules_integrationtests', |
| 35 'modules_unittests', | 32 'modules_unittests', |
| 36 'neteq_unittests', | 33 'neteq_unittests', |
| 37 'system_wrappers_unittests', | 34 'system_wrappers_unittests', |
| 38 'test_support_unittests', | 35 'test_support_unittests', |
| 39 'tools_unittests', | 36 'tools_unittests', |
| 40 'video_engine_core_unittests', | 37 'video_engine_core_unittests', |
| 41 'voice_engine_unittests', | 38 'voice_engine_unittests', |
| 42 ] | 39 ] |
| 43 | 40 |
| 44 ninja_options = ['--build-tool=ninja'] | 41 ninja_options = ['--build-tool=ninja'] |
| 45 | 42 |
| 46 defaults['category'] = 'linux' | 43 defaults['category'] = 'linux' |
| 47 | 44 |
| 48 B('Linux32 Debug', 'linux32_debug_factory', scheduler=scheduler) | 45 B('Linux32 Debug', 'linux32_debug_factory', scheduler=scheduler) |
| 49 F('linux32_debug_factory', linux().WebRTCFactory( | 46 F('linux32_debug_factory', linux().WebRTCFactory( |
| 50 target='Debug', | 47 target='Debug', |
| 51 options=ninja_options, | 48 options=ninja_options, |
| 52 tests=tests, | 49 tests=tests, |
| 53 factory_properties={'gclient_env': {'GYP_DEFINES': 'target_arch=ia32'}})) | 50 factory_properties={'gclient_env': {'GYP_DEFINES': 'target_arch=ia32'}})) |
| 54 B('Linux32 Release', 'linux32_release_factory', scheduler=scheduler) | 51 B('Linux32 Release', 'linux32_release_factory', scheduler=scheduler) |
| 55 F('linux32_release_factory', linux().WebRTCFactory( | 52 F('linux32_release_factory', linux().WebRTCFactory( |
| 56 target='Release', | 53 target='Release', |
| 57 options=ninja_options, | 54 options=ninja_options, |
| 58 tests=tests, | 55 tests=tests, |
| 59 factory_properties={'gclient_env': {'GYP_DEFINES': 'target_arch=ia32'}})) | 56 factory_properties={'gclient_env': {'GYP_DEFINES': 'target_arch=ia32'}})) |
| 60 | 57 |
| 61 B('Linux64 Debug', 'linux64_debug_factory', scheduler=scheduler) | 58 B('Linux64 Debug', 'linux64_debug_factory', scheduler=scheduler) |
| 62 F('linux64_debug_factory', linux().WebRTCFactory( | 59 F('linux64_debug_factory', linux().WebRTCFactory( |
| 63 target='Debug', | 60 target='Debug', |
| 64 options=ninja_options, | 61 options=ninja_options, |
| 65 tests=tests)) | 62 tests=tests)) |
| 66 B('Linux64 Release', 'linux64_release_factory', scheduler=scheduler) | 63 B('Linux64 Release', 'linux64_release_factory', scheduler=scheduler) |
| 67 F('linux64_release_factory', linux().WebRTCFactory( | 64 F('linux64_release_factory', linux().WebRTCFactory( |
| 68 target='Release', | 65 target='Release', |
| 69 options=ninja_options, | 66 options=ninja_options, |
| 70 tests=tests)) | 67 tests=tests)) |
| 71 | 68 |
| 72 B('Linux Clang', 'linux_clang_factory', scheduler=scheduler) | 69 B('Linux Clang', 'linux_clang_factory', scheduler=scheduler) |
| 73 F('linux_clang_factory', linux().WebRTCFactory( | 70 F('linux_clang_factory', linux().WebRTCFactory( |
| 74 target='Debug', | 71 target='Debug', |
| 75 options=ninja_options, | 72 options=ninja_options, |
| 76 tests=tests, | 73 tests=tests, |
| 77 factory_properties={'gclient_env': {'GYP_DEFINES': 'clang=1'}})) | 74 factory_properties={'gclient_env': {'GYP_DEFINES': 'clang=1'}})) |
| 78 | 75 |
| 79 B('Linux Memcheck', 'linux_memcheck_factory', scheduler=scheduler) | 76 B('Linux Memcheck', 'linux_memcheck_factory', scheduler=scheduler) |
| 80 F('linux_memcheck_factory', linux().WebRTCFactory( | 77 F('linux_memcheck_factory', linux().WebRTCFactory( |
| 81 target='Release', | 78 target='Release', |
| 82 options=ninja_options, | 79 options=ninja_options, |
| 83 tests=tests, | 80 tests=tests, |
| 84 factory_properties={'needs_valgrind': True, | 81 factory_properties={'needs_valgrind': True, |
| 85 'gclient_env': | 82 'gclient_env': |
| 86 {'GYP_DEFINES': 'build_for_tool=memcheck'}})) | 83 {'GYP_DEFINES': 'build_for_tool=memcheck'}})) |
| 87 B('Linux Tsan', 'linux_tsan_factory', scheduler=scheduler) | 84 B('Linux Tsan', 'linux_tsan_factory', scheduler=scheduler) |
| 88 F('linux_tsan_factory', linux().WebRTCFactory( | 85 F('linux_tsan_factory', linux().WebRTCFactory( |
| 89 target='Release', | 86 target='Release', |
| 90 options=ninja_options, | 87 options=ninja_options, |
| 91 tests=tests, | 88 tests=tests, |
| 92 factory_properties={'needs_valgrind': True, | 89 factory_properties={'needs_valgrind': True, |
| 93 'gclient_env': | 90 'gclient_env': |
| 94 {'GYP_DEFINES': 'build_for_tool=tsan'}})) | 91 {'GYP_DEFINES': 'build_for_tool=tsan'}})) |
| 95 B('Linux Asan', 'linux_asan_factory', scheduler=scheduler) | 92 B('Linux Asan', 'linux_asan_factory', scheduler=scheduler) |
| 96 F('linux_asan_factory', linux().WebRTCFactory( | 93 F('linux_asan_factory', linux().WebRTCFactory( |
| 97 target='Release', | 94 target='Release', |
| 98 options=ninja_options, | 95 options=ninja_options, |
| 99 tests=tests, | 96 tests=tests, |
| 100 factory_properties={'asan': True, | 97 factory_properties={'asan': True, |
| 101 'gclient_env': | 98 'gclient_env': |
| 102 {'GYP_DEFINES': ('asan=1 release_extra_cflags=-g ' | 99 {'GYP_DEFINES': ('asan=1 release_extra_cflags=-g ' |
| 103 ' linux_use_tcmalloc=0 ')}})) | 100 ' linux_use_tcmalloc=0 ')}})) |
| 104 | 101 |
| 105 # Android. | 102 # Android. |
| 106 B('Android NDK', 'android_ndk_factory', scheduler=scheduler) | 103 B('Android NDK', 'android_ndk_factory', scheduler=scheduler) |
| 107 F('android_ndk_factory', android().ChromiumAnnotationFactory( | 104 F('android_ndk_factory', android().ChromiumAnnotationFactory( |
| 105 target='Debug', |
| 106 slave_type='AnnotatedBuilderTester', |
| 107 annotation_script='src/build/android/buildbot/bb_run_bot.py', |
| 108 factory_properties={ |
| 109 'android_bot_id': 'webrtc-builder-dbg', |
| 110 })) |
| 111 |
| 112 # ChromeOS. |
| 113 B('Chrome OS', 'chromeos_factory', scheduler=scheduler) |
| 114 F('chromeos_factory', linux().WebRTCFactory( |
| 108 target='Debug', | 115 target='Debug', |
| 109 slave_type='AnnotatedBuilderTester', | 116 options=ninja_options, |
| 110 annotation_script='src/build/android/buildbot/bb_run_bot.py', | 117 tests=tests, |
| 111 factory_properties={ | 118 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) |
| 112 'android_bot_id': 'webrtc-builder-dbg', | |
| 113 })) | |
| 114 | 119 |
| 115 # ChromeOS. | |
| 116 B('Chrome OS', 'chromeos_factory', scheduler=scheduler) | |
| 117 F('chromeos_factory', linux().WebRTCFactory( | |
| 118 target='Debug', | |
| 119 options=ninja_options, | |
| 120 tests=tests, | |
| 121 factory_properties={'gclient_env': {'GYP_DEFINES': 'chromeos=1'}})) | |
| 122 | 120 |
| 121 def Update(c): |
| 123 helper.Update(c) | 122 helper.Update(c) |
| OLD | NEW |