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 import recipe_api | |
| 6 from recipe_engine.recipe_api import Property | |
| 7 from recipe_engine.types import freeze | |
| 8 | |
| 9 DEPS = [ | |
| 10 'depot_tools/bot_update', | |
| 11 'chromium', | |
| 12 'chromium_android', | |
| 13 'chromium_swarming', | |
| 14 'chromium_tests', | |
| 15 'recipe_engine/json', | |
| 16 'recipe_engine/path', | |
| 17 'recipe_engine/platform', | |
| 18 'recipe_engine/properties', | |
| 19 'recipe_engine/python', | |
| 20 'recipe_engine/step', | |
| 21 'swarming', | |
| 22 'test_results', | |
| 23 'test_utils', | |
| 24 ] | |
| 25 | |
| 26 BUILDERS = freeze({ | |
| 27 'chromium.fyi': { | |
| 28 'builders':{ | |
| 29 'Blimp Android Tester': { | |
| 30 'client_config': { | |
| 31 'android_config': 'main_builder_rel_mb', | |
| 32 'chromium_config': 'android', | |
| 33 'chromium_config_kwargs': { | |
| 34 'BUILD_CONFIG': 'Debug', | |
| 35 'TARGET_BITS': 64, | |
| 36 'TARGET_PLATFORM': 'android', | |
| 37 }, | |
| 38 'gclient_apply_config': ['android'], | |
| 39 'gclient_config': 'chromium', | |
| 40 }, | |
| 41 'engine_config': { | |
| 42 'chromium_apply_config': [ 'mb' ], | |
| 43 'chromium_config': 'chromium', | |
| 44 'chromium_config_kwargs': { | |
| 45 'BUILD_CONFIG': 'Debug', | |
| 46 'TARGET_BITS': 64, | |
| 47 'TARGET_PLATFORM': 'linux', | |
| 48 }, | |
| 49 'gclient_config': 'chromium', | |
| 50 }, | |
| 51 }, | |
| 52 }, | |
| 53 }, | |
| 54 }) | |
| 55 | |
| 56 | |
| 57 def RunSteps(api): | |
| 58 ANDROID_BUILD = api.path['slave_build'].join('src', 'out-android', 'Debug') | |
|
jbudorick
2016/10/06 13:34:30
ANDROID_BUILD and LINUX_BUILD should not be capita
shenghuazhang
2016/10/07 02:13:26
Done.
| |
| 59 LINUX_BUILD = api.path['slave_build'].join('src', 'out-linux', 'Debug') | |
| 60 mastername = api.properties.get('mastername') | |
| 61 buildername, bot_config = api.chromium.configure_bot(BUILDERS) | |
|
jbudorick
2016/10/06 13:34:30
After looking at api.chromium.configure_bot, I'm n
| |
| 62 api.chromium.ensure_goma() | |
| 63 api.chromium.runhooks() | |
| 64 api.chromium.run_mb(mastername="chromium.fyi", | |
|
jbudorick
2016/10/06 13:34:30
nit: separate the android build and the linux bui
shenghuazhang
2016/10/08 00:21:08
Done.
| |
| 65 buildername="Blimp Android Test - Android", | |
| 66 build_dir=ANDROID_BUILD) | |
| 67 api.chromium.run_mb(mastername="chromium.fyi", | |
| 68 buildername="Blimp Android Test - Linux", | |
| 69 build_dir=LINUX_BUILD) | |
| 70 api.chromium.compile(targets=['blimp', 'chrome_public_apk'], out_dir=ANDROID_B UILD) | |
|
jbudorick
2016/10/06 13:34:30
80 chars, please
shenghuazhang
2016/10/07 02:13:26
Done.
| |
| 71 api.chromium.compile(targets=['blimp'], out_dir=LINUX_BUILD) | |
| 72 | |
| 73 | |
| 74 def GenTests(api): | |
| 75 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) | |
| 76 | |
| 77 yield ( | |
| 78 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) + | |
| 79 api.properties.generic( | |
| 80 buildername='Blimp Android Tester', | |
| 81 mastername='chromium.fyi') | |
| 82 ) | |
| OLD | NEW |