| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 """ | 5 """ |
| 6 Recipe for building and running tests for Libyuv stand-alone. | 6 Recipe for building and running tests for Libyuv stand-alone. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 from recipe_engine.types import freeze | 9 from recipe_engine.types import freeze |
| 10 | 10 |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 bot_config = master_dict.get('builders', {}).get(buildername) | 854 bot_config = master_dict.get('builders', {}).get(buildername) |
| 855 assert bot_config, ('Unrecognized builder name "%r" for master "%r".' % | 855 assert bot_config, ('Unrecognized builder name "%r" for master "%r".' % |
| 856 (buildername, mastername)) | 856 (buildername, mastername)) |
| 857 recipe_config_name = bot_config['recipe_config'] | 857 recipe_config_name = bot_config['recipe_config'] |
| 858 recipe_config = RECIPE_CONFIGS.get(recipe_config_name) | 858 recipe_config = RECIPE_CONFIGS.get(recipe_config_name) |
| 859 assert recipe_config, ('Cannot find recipe_config "%s" for builder "%r".' % | 859 assert recipe_config, ('Cannot find recipe_config "%s" for builder "%r".' % |
| 860 (recipe_config_name, buildername)) | 860 (recipe_config_name, buildername)) |
| 861 | 861 |
| 862 api.chromium.set_config(recipe_config['chromium_config'], | 862 api.chromium.set_config(recipe_config['chromium_config'], |
| 863 **bot_config.get('chromium_config_kwargs', {})) | 863 **bot_config.get('chromium_config_kwargs', {})) |
| 864 api.gclient.set_config(recipe_config['gclient_config']) | 864 api.gclient.set_config(recipe_config['gclient_config'], GIT_MODE=True) |
| 865 for c in bot_config.get('gclient_apply_config', []): | 865 for c in bot_config.get('gclient_apply_config', []): |
| 866 api.gclient.apply_config(c) | 866 api.gclient.apply_config(c) |
| 867 for c in bot_config.get('chromium_apply_config', []): | 867 for c in bot_config.get('chromium_apply_config', []): |
| 868 api.chromium.apply_config(c) | 868 api.chromium.apply_config(c) |
| 869 | 869 |
| 870 if api.tryserver.is_tryserver: | 870 if api.tryserver.is_tryserver: |
| 871 api.chromium.apply_config('trybot_flavor') | 871 api.chromium.apply_config('trybot_flavor') |
| 872 | 872 |
| 873 api.bot_update.ensure_checkout(force=True) | 873 api.bot_update.ensure_checkout(force=True) |
| 874 api.chromium.ensure_goma() | 874 api.chromium.ensure_goma() |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 | 917 |
| 918 # Forced builds (not specifying any revision) and test failures. | 918 # Forced builds (not specifying any revision) and test failures. |
| 919 mastername = 'client.libyuv' | 919 mastername = 'client.libyuv' |
| 920 yield generate_builder(mastername, 'Linux64 Debug', revision=None, | 920 yield generate_builder(mastername, 'Linux64 Debug', revision=None, |
| 921 suffix='_forced') | 921 suffix='_forced') |
| 922 yield generate_builder(mastername, 'Android Debug', revision=None, | 922 yield generate_builder(mastername, 'Android Debug', revision=None, |
| 923 suffix='_forced') | 923 suffix='_forced') |
| 924 | 924 |
| 925 yield generate_builder('tryserver.libyuv', 'linux', revision=None, | 925 yield generate_builder('tryserver.libyuv', 'linux', revision=None, |
| 926 suffix='_forced') | 926 suffix='_forced') |
| OLD | NEW |