| 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 DEPS = [ |
| 8 'depot_tools/bot_update', |
| 9 'chromium', |
| 10 'file', |
| 11 'gsutil', |
| 12 'recipe_engine/path', |
| 13 'recipe_engine/platform', |
| 14 'recipe_engine/properties', |
| 15 'recipe_engine/python', |
| 16 'recipe_engine/step', |
| 17 ] |
| 18 |
| 19 |
| 20 BUILDERS = freeze({ |
| 21 'tryserver.chromium.linux': { |
| 22 'builders': { |
| 23 'linux_chromium_clang_upload': { |
| 24 'chromium_config_kwargs': { |
| 25 'BUILD_CONFIG': 'Release', |
| 26 'TARGET_PLATFORM': 'linux', |
| 27 'TARGET_BITS': 64, |
| 28 }, |
| 29 |
| 30 # We need this to build the Clang toolchain |
| 31 # with proper AddressSanitizer prebuilts for |
| 32 # Chrome on Android. |
| 33 'gclient_apply_config': ['android'], |
| 34 }, |
| 35 }, |
| 36 }, |
| 37 }) |
| 38 |
| 39 |
| 40 def RunSteps(api): |
| 41 mastername = api.m.properties['mastername'] |
| 42 buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb']) |
| 43 |
| 44 api.bot_update.ensure_checkout( |
| 45 force=True, patch_root=bot_config.get('root_override')) |
| 46 |
| 47 api.chromium.runhooks() |
| 48 |
| 49 api.chromium.run_mb(mastername, buildername) |
| 50 |
| 51 api.python( |
| 52 'package clang', |
| 53 api.path['checkout'].join('tools', 'clang', 'scripts', 'package.py')) |
| 54 |
| 55 |
| 56 def GenTests(api): |
| 57 for test in api.chromium.gen_tests_for_builders(BUILDERS): |
| 58 yield test |
| OLD | NEW |