| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from recipe_engine.types import freeze |
| 6 |
| 7 |
| 8 DEPS = [ |
| 9 'depot_tools/bot_update', |
| 10 'chromium', |
| 11 'recipe_engine/step', |
| 12 'webrtc', |
| 13 ] |
| 14 |
| 15 RECIPE_CONFIGS = freeze({ |
| 16 'webrtc_minimal': { |
| 17 'chromium_config': 'webrtc_minimal', |
| 18 'gclient_config': 'webrtc', |
| 19 }, |
| 20 }) |
| 21 |
| 22 BUILDERS = freeze({ |
| 23 'client.webrtc': { |
| 24 'builders': { |
| 25 'Linux (more configs)': { |
| 26 'recipe_config': 'webrtc_minimal', |
| 27 'chromium_config_kwargs': { |
| 28 'BUILD_CONFIG': 'Debug', |
| 29 'TARGET_BITS': 64, |
| 30 }, |
| 31 'bot_type': 'builder', |
| 32 'testing': {'platform': 'linux'}, |
| 33 }, |
| 34 }, |
| 35 }, |
| 36 'tryserver.webrtc': { |
| 37 'builders': { |
| 38 'linux_more_configs': { |
| 39 'recipe_config': 'webrtc_minimal', |
| 40 'chromium_config_kwargs': { |
| 41 'BUILD_CONFIG': 'Debug', |
| 42 'TARGET_BITS': 64, |
| 43 }, |
| 44 'bot_type': 'builder', |
| 45 'testing': {'platform': 'linux'}, |
| 46 }, |
| 47 }, |
| 48 }, |
| 49 }) |
| 50 |
| 51 |
| 52 def BuildSteps(api, gn_arg=None, name=None): |
| 53 if gn_arg: |
| 54 assert isinstance(gn_arg, basestring) |
| 55 api.chromium.c.gn_args = [gn_arg] if gn_arg else [] |
| 56 api.chromium.run_gn(use_goma=True) |
| 57 api.step.active_result.presentation.step_text = 'gn (%s)' % (name or gn_arg) |
| 58 api.chromium.compile() |
| 59 |
| 60 |
| 61 def RunSteps(api): |
| 62 webrtc = api.webrtc |
| 63 webrtc.apply_bot_config(BUILDERS, RECIPE_CONFIGS) |
| 64 |
| 65 api.webrtc.checkout() |
| 66 api.chromium.ensure_goma() |
| 67 api.chromium.runhooks() |
| 68 |
| 69 BuildSteps(api, name='minimal') |
| 70 BuildSteps(api, gn_arg='rtc_enable_intelligibility_enhancer=true') |
| 71 BuildSteps(api, gn_arg='rtc_enable_protobuf=false') |
| 72 BuildSteps(api, gn_arg='rtc_include_opus=false') |
| 73 |
| 74 |
| 75 def GenTests(api): |
| 76 for test in api.chromium.gen_tests_for_builders(BUILDERS): |
| 77 yield test |
| OLD | NEW |