| 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 from recipe_engine import recipe_api | 5 from recipe_engine import recipe_api |
| 6 from . import builders | 6 from . import builders |
| 7 | 7 |
| 8 | 8 |
| 9 class LibyuvApi(recipe_api.RecipeApi): | 9 class LibyuvApi(recipe_api.RecipeApi): |
| 10 BUILDERS = builders.BUILDERS | 10 BUILDERS = builders.BUILDERS |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 self.m.chromium.set_config(self.recipe_config['chromium_config'], | 38 self.m.chromium.set_config(self.recipe_config['chromium_config'], |
| 39 **chromium_kwargs) | 39 **chromium_kwargs) |
| 40 self.m.gclient.set_config(self.recipe_config['gclient_config']) | 40 self.m.gclient.set_config(self.recipe_config['gclient_config']) |
| 41 | 41 |
| 42 # Support applying configs both at the bot and the recipe config level. | 42 # Support applying configs both at the bot and the recipe config level. |
| 43 for c in self.bot_config.get('chromium_apply_config', []): | 43 for c in self.bot_config.get('chromium_apply_config', []): |
| 44 self.m.chromium.apply_config(c) | 44 self.m.chromium.apply_config(c) |
| 45 for c in self.bot_config.get('gclient_apply_config', []): | 45 for c in self.bot_config.get('gclient_apply_config', []): |
| 46 self.m.gclient.apply_config(c) | 46 self.m.gclient.apply_config(c) |
| 47 | 47 |
| 48 if 'gyp' not in buildername.lower(): | 48 self.m.chromium.apply_config('gn') |
| 49 self.m.chromium.apply_config('gn') | |
| 50 | 49 |
| 51 if self.m.tryserver.is_tryserver: | 50 if self.m.tryserver.is_tryserver: |
| 52 self.m.chromium.apply_config('trybot_flavor') | 51 self.m.chromium.apply_config('trybot_flavor') |
| 53 | 52 |
| 54 @property | 53 @property |
| 55 def should_build(self): | 54 def should_build(self): |
| 56 return self.bot_type in ('builder', 'builder_tester') | 55 return self.bot_type in ('builder', 'builder_tester') |
| 57 | 56 |
| 58 @property | 57 @property |
| 59 def should_test(self): | 58 def should_test(self): |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 if self.m.chromium.c.TARGET_PLATFORM == 'android': | 121 if self.m.chromium.c.TARGET_PLATFORM == 'android': |
| 123 self.m.chromium_android.common_tests_setup_steps() | 122 self.m.chromium_android.common_tests_setup_steps() |
| 124 self.m.chromium_android.run_test_suite('libyuv_unittest') | 123 self.m.chromium_android.run_test_suite('libyuv_unittest') |
| 125 self.m.chromium_android.shutdown_device_monitor() | 124 self.m.chromium_android.shutdown_device_monitor() |
| 126 self.m.chromium_android.logcat_dump( | 125 self.m.chromium_android.logcat_dump( |
| 127 gs_bucket=self.master_config.get('build_gs_bucket')) | 126 gs_bucket=self.master_config.get('build_gs_bucket')) |
| 128 self.m.chromium_android.stack_tool_steps(force_latest_version=True) | 127 self.m.chromium_android.stack_tool_steps(force_latest_version=True) |
| 129 self.m.chromium_android.test_report() | 128 self.m.chromium_android.test_report() |
| 130 else: | 129 else: |
| 131 self.m.chromium.runtest('libyuv_unittest') | 130 self.m.chromium.runtest('libyuv_unittest') |
| OLD | NEW |