| 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') |
| 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) |
| 62 api.chromium.ensure_goma() |
| 63 api.chromium.runhooks() |
| 64 api.chromium.run_mb(mastername="chromium.fyi", |
| 65 buildername="Blimp Android Test - Linux", |
| 66 build_dir=linux_build) |
| 67 api.chromium.compile(targets=['blimp'], |
| 68 out_dir=linux_build) |
| 69 api.chromium.run_mb(mastername="chromium.fyi", |
| 70 buildername="Blimp Android Test - Android", |
| 71 build_dir=android_build) |
| 72 api.chromium.compile(targets=['blimp', 'chrome_public_apk'], |
| 73 out_dir=android_build) |
| 74 |
| 75 |
| 76 def GenTests(api): |
| 77 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) |
| 78 |
| 79 yield ( |
| 80 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) + |
| 81 api.properties.generic( |
| 82 buildername='Blimp Android Tester', |
| 83 mastername='chromium.fyi') |
| 84 ) |
| OLD | NEW |