Chromium Code Reviews| 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, | |
| 43 ['mb']) | |
|
Dirk Pranke
2016/02/11 01:26:07
nit: did you really need to wrap this line?
krasin1
2016/02/11 18:02:56
Not really. :)
| |
| 44 | |
| 45 api.bot_update.ensure_checkout( | |
| 46 force=True, patch_root=bot_config.get('root_override')) | |
| 47 | |
| 48 api.chromium.runhooks() | |
| 49 | |
| 50 api.chromium.run_mb(mastername, buildername) | |
| 51 | |
| 52 api.python( | |
| 53 'package clang', | |
| 54 api.path['checkout'].join('tools', 'clang', 'scripts', 'package.py')) | |
| 55 | |
| 56 | |
| 57 def GenTests(api): | |
| 58 for test in api.chromium.gen_tests_for_builders(BUILDERS): | |
| 59 yield test | |
| OLD | NEW |