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 | 7 |
8 defaults = {} | 8 defaults = {} |
9 | 9 |
10 helper = master_config.Helper(defaults) | 10 helper = master_config.Helper(defaults) |
11 B = helper.Builder | 11 B = helper.Builder |
12 F = helper.Factory | 12 F = helper.Factory |
13 S = helper.Scheduler | 13 S = helper.Scheduler |
14 P = helper.Periodic | 14 P = helper.Periodic |
15 | 15 |
16 | 16 |
17 def mac(): | 17 def mac(): |
18 return chromium_factory.ChromiumFactory('src/xcodebuild', 'darwin') | 18 return chromium_factory.ChromiumFactory('src/xcodebuild', 'darwin') |
19 | 19 |
20 S('mac_webrtc_trunk_scheduler', branch='trunk', treeStableTimer=0) | 20 S('mac_webrtc_trunk_scheduler', branch='trunk', treeStableTimer=0) |
21 S('mac_webrtc_stable_scheduler', branch='stable', treeStableTimer=0) | 21 S('mac_webrtc_stable_scheduler', branch='stable', treeStableTimer=0) |
22 P('mac_every_4_hours_scheduler', periodicBuildTimer=4*60*60) | 22 P('mac_periodic_scheduler', periodicBuildTimer=60*60) |
23 | 23 |
24 options = ['--compiler=goma-clang', '--', '-target', 'chromium_builder_webrtc'] | 24 options = ['--compiler=goma-clang', '--', '-target', 'chromium_builder_webrtc'] |
25 tests = [ | 25 tests = [ |
26 'webrtc_manual_browser_tests', | 26 'webrtc_manual_browser_tests', |
27 'webrtc_manual_content_browsertests', | 27 'webrtc_manual_content_browsertests', |
28 'webrtc_content_unittests', | 28 'webrtc_content_unittests', |
29 'webrtc_perf_content_unittests', | 29 'webrtc_perf_content_unittests', |
30 'sizes', | 30 'sizes', |
31 ] | 31 ] |
32 | 32 |
33 defaults['category'] = 'mac' | 33 defaults['category'] = 'mac' |
34 | 34 |
35 B('Mac [latest WebRTC trunk]', 'mac_webrtc_trunk_factory', | 35 B('Mac [latest WebRTC trunk]', 'mac_webrtc_trunk_factory', |
36 scheduler='mac_webrtc_trunk_scheduler|mac_every_4_hours_scheduler', | 36 scheduler='mac_webrtc_trunk_scheduler|mac_periodic_scheduler', |
37 notify_on_missing=True) | 37 notify_on_missing=True) |
38 F('mac_webrtc_trunk_factory', mac().ChromiumWebRTCLatestTrunkFactory( | 38 F('mac_webrtc_trunk_factory', mac().ChromiumWebRTCLatestTrunkFactory( |
39 slave_type='BuilderTester', | 39 slave_type='BuilderTester', |
40 target='Release', | 40 target='Release', |
41 options=options, | 41 options=options, |
42 tests=tests, | 42 tests=tests, |
43 factory_properties={ | 43 factory_properties={ |
44 'virtual_webcam': True, | 44 'virtual_webcam': True, |
45 'show_perf_results': True, | 45 'show_perf_results': True, |
46 'perf_id': 'chromium-webrtc-trunk-tot-rel-mac', | 46 'perf_id': 'chromium-webrtc-trunk-tot-rel-mac', |
47 })) | 47 })) |
48 | 48 |
49 B('Mac [latest WebRTC stable]', 'mac_webrtc_stable_factory', | 49 B('Mac [latest WebRTC stable]', 'mac_webrtc_stable_factory', |
50 scheduler='mac_webrtc_stable_scheduler|mac_every_4_hours_scheduler', | 50 scheduler='mac_webrtc_stable_scheduler|mac_periodic_scheduler', |
51 notify_on_missing=True) | 51 notify_on_missing=True) |
52 F('mac_webrtc_stable_factory', mac().ChromiumWebRTCLatestStableFactory( | 52 F('mac_webrtc_stable_factory', mac().ChromiumWebRTCLatestStableFactory( |
53 slave_type='BuilderTester', | 53 slave_type='BuilderTester', |
54 target='Release', | 54 target='Release', |
55 options=options, | 55 options=options, |
56 tests=tests, | 56 tests=tests, |
57 factory_properties={ | 57 factory_properties={ |
58 'virtual_webcam': True, | 58 'virtual_webcam': True, |
59 'show_perf_results': True, | 59 'show_perf_results': True, |
60 'perf_id': 'chromium-webrtc-stable-tot-rel-mac', | 60 'perf_id': 'chromium-webrtc-stable-tot-rel-mac', |
61 })) | 61 })) |
62 | 62 |
63 | 63 |
64 def Update(config, active_master, c): | 64 def Update(config, active_master, c): |
65 return helper.Update(c) | 65 return helper.Update(c) |
OLD | NEW |