| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import copy | 5 import copy |
| 6 import collections | 6 import collections |
| 7 | 7 |
| 8 from . import chromium_linux | 8 from . import chromium_linux |
| 9 from . import chromium_mac | 9 from . import chromium_mac |
| 10 from . import chromium_win | 10 from . import chromium_win |
| 11 from . import chromium_webrtc | 11 from . import chromium_webrtc |
| 12 | 12 |
| 13 | 13 |
| 14 # GN builders are added first. They're setup to be as similar as possible to | 14 # GN builders are added first. They're setup to be as similar as possible to |
| 15 # the builders in Chromium, to be able to detect breakages pre-roll. | 15 # the builders in Chromium, to be able to detect breakages pre-roll. |
| 16 SPEC = { | 16 SPEC = { |
| 17 'settings': { | 17 'settings': { |
| 18 'build_gs_bucket': 'chromium-webrtc', | 18 'build_gs_bucket': 'chromium-webrtc', |
| 19 }, | 19 }, |
| 20 'builders': {}, | 20 'builders': {}, |
| 21 } | 21 } |
| 22 | 22 |
| 23 | 23 |
| 24 def AddGNBuilder(spec, name, dest_name=None): | |
| 25 SPEC['builders'][dest_name or name] = copy.deepcopy(spec['builders'][name]) | |
| 26 | |
| 27 | |
| 28 AddGNBuilder(chromium_mac.SPEC, 'Mac Builder', 'Mac GN') | |
| 29 AddGNBuilder(chromium_mac.SPEC, 'Mac Builder (dbg)', 'Mac GN (dbg)') | |
| 30 AddGNBuilder(chromium_win.SPEC, 'Win x64 Builder', 'Win x64 GN') | |
| 31 AddGNBuilder(chromium_win.SPEC, 'Win x64 Builder (dbg)', 'Win x64 GN (dbg)') | |
| 32 | |
| 33 | |
| 34 for b in SPEC['builders'].itervalues(): | |
| 35 b.setdefault('gclient_apply_config', []) | |
| 36 b['gclient_apply_config'].append('chromium_webrtc_tot') | |
| 37 b['tests'] = [] # These WebRTC builders only run compile. | |
| 38 | |
| 39 | |
| 40 # Remaining builders are WebRTC-specific builders that compile and run tests | 24 # Remaining builders are WebRTC-specific builders that compile and run tests |
| 41 # that are focused on testing WebRTC functionality. Some of these tests are | 25 # that are focused on testing WebRTC functionality. Some of these tests are |
| 42 # marked MANUAL since they require audio and/or video devices on the machine | 26 # marked MANUAL since they require audio and/or video devices on the machine |
| 43 # they run at. | 27 # they run at. |
| 44 _builders = collections.defaultdict(dict) | 28 _builders = collections.defaultdict(dict) |
| 45 | 29 |
| 46 def AddBuildSpec(name, platform, target_bits=64, build_config='Release'): | 30 def AddBuildSpec(name, platform, target_bits=64, build_config='Release'): |
| 47 SPEC['builders'][name] = chromium_webrtc.BuildSpec( | 31 SPEC['builders'][name] = chromium_webrtc.BuildSpec( |
| 48 platform, target_bits, build_config=build_config, | 32 platform, target_bits, build_config=build_config, |
| 49 gclient_config='chromium_webrtc_tot') | 33 gclient_config='chromium_webrtc_tot') |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 target_bits=32, build_config='Debug') | 69 target_bits=32, build_config='Debug') |
| 86 AddTestSpec('Android Tests (dbg) (L Nexus6)', | 70 AddTestSpec('Android Tests (dbg) (L Nexus6)', |
| 87 'chromium-webrtc-trunk-tot-dbg-android-nexus6', 'android', | 71 'chromium-webrtc-trunk-tot-dbg-android-nexus6', 'android', |
| 88 target_bits=32, build_config='Debug') | 72 target_bits=32, build_config='Debug') |
| 89 AddTestSpec('Android Tests (dbg) (L Nexus7.2)', | 73 AddTestSpec('Android Tests (dbg) (L Nexus7.2)', |
| 90 'chromium-webrtc-trunk-tot-dbg-android-nexus72', 'android', | 74 'chromium-webrtc-trunk-tot-dbg-android-nexus72', 'android', |
| 91 target_bits=32, build_config='Debug') | 75 target_bits=32, build_config='Debug') |
| 92 AddTestSpec('Android Tests (dbg) (L Nexus9)', | 76 AddTestSpec('Android Tests (dbg) (L Nexus9)', |
| 93 'chromium-webrtc-trunk-tot-dbg-android-nexus9', 'android', | 77 'chromium-webrtc-trunk-tot-dbg-android-nexus9', 'android', |
| 94 build_config='Debug') | 78 build_config='Debug') |
| OLD | NEW |