Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 recipe_engine.recipe_api import Property | 6 from recipe_engine.recipe_api import Property |
| 7 from recipe_engine.types import freeze | 7 from recipe_engine.types import freeze |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'chromium', | 10 'chromium', |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 'gclient_apply_config': 'android', | 32 'gclient_apply_config': 'android', |
| 33 'gclient_config': 'chromium', | 33 'gclient_config': 'chromium', |
| 34 'target': 'Debug', | 34 'target': 'Debug', |
| 35 }, | 35 }, |
| 36 }, | 36 }, |
| 37 }) | 37 }) |
| 38 | 38 |
| 39 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' | 39 REPO_URL = 'https://chromium.googlesource.com/chromium/src.git' |
| 40 | 40 |
| 41 def RunSteps(api): | 41 def RunSteps(api): |
| 42 android_build = api.path['slave_build'].join('src', 'out-android', 'Debug') | |
| 43 linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug') | |
| 44 mastername = api.properties.get('mastername') | 42 mastername = api.properties.get('mastername') |
| 45 buildername = api.properties.get('buildername') | 43 buildername = api.properties.get('buildername') |
| 46 builder = BUILDERS[mastername][buildername] | 44 builder = BUILDERS[mastername][buildername] |
| 45 api.chromium.set_config('chromium') | |
| 47 api.chromium_android.configure_from_properties( | 46 api.chromium_android.configure_from_properties( |
| 48 builder['config'], | 47 builder['config'], |
| 49 REPO_NAME='src', | 48 REPO_NAME='src', |
| 50 REPO_URL=REPO_URL, | 49 REPO_URL=REPO_URL, |
| 51 INTERNAL=False, | 50 INTERNAL=False, |
| 52 BUILD_CONFIG=builder['target']) | 51 BUILD_CONFIG=builder['target']) |
| 53 | 52 |
| 54 api.chromium.set_config('chromium') | |
| 55 api.gclient.set_config(builder['gclient_config']) | 53 api.gclient.set_config(builder['gclient_config']) |
| 56 api.gclient.apply_config(builder['gclient_apply_config']) | 54 api.gclient.apply_config(builder['gclient_apply_config']) |
| 57 api.bot_update.ensure_checkout() | 55 api.bot_update.ensure_checkout() |
| 58 api.chromium.ensure_goma() | 56 api.chromium.ensure_goma() |
| 59 api.chromium_android.clean_local_files() | 57 api.chromium_android.clean_local_files() |
| 60 api.chromium.runhooks() | 58 api.chromium.runhooks() |
| 61 | 59 |
| 60 android_build = api.path['checkout'].join( | |
| 61 'out-android', | |
| 62 api.chromium.c.build_config_fs) | |
| 63 linux_build = api.path['checkout'].join( | |
| 64 'out-linux', | |
| 65 api.chromium.c.build_config_fs) | |
|
mikecase (-- gone --)
2016/10/14 19:04:14
Indenting should be either ....
linux_build = ap
shenghuazhang
2016/10/14 19:27:23
I see. Will do with the first one. Second one is p
| |
| 66 | |
| 62 api.chromium.run_mb(mastername=mastername, | 67 api.chromium.run_mb(mastername=mastername, |
| 63 buildername=buildername, | 68 buildername=buildername, |
| 64 build_dir=linux_build, | 69 build_dir=linux_build, |
| 65 phase='engine') | 70 phase='engine') |
| 66 api.chromium.compile(targets=['blimp'], | 71 api.chromium.compile(targets=['blimp'], |
| 67 out_dir=linux_build) | 72 out_dir=linux_build) |
| 68 api.chromium.run_mb(mastername=mastername, | 73 api.chromium.run_mb(mastername=mastername, |
| 69 buildername=buildername, | 74 buildername=buildername, |
| 70 build_dir=android_build, | 75 build_dir=android_build, |
| 71 phase='client') | 76 phase='client') |
| 72 api.chromium.compile(targets=['blimp', 'chrome_public_apk'], | 77 api.chromium.compile(targets=['blimp', 'chrome_public_apk'], |
| 73 out_dir=android_build) | 78 out_dir=android_build) |
| 74 | 79 |
| 75 | 80 |
| 76 def GenTests(api): | 81 def GenTests(api): |
| 77 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) | 82 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s) |
| 78 | 83 |
| 79 yield ( | 84 yield ( |
| 80 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) + | 85 api.test('%s_test_pass' % sanitize('Blimp Client Engine Integration')) + |
| 81 api.properties.generic( | 86 api.properties.generic( |
| 82 buildername='Blimp Client Engine Integration', | 87 buildername='Blimp Client Engine Integration', |
| 83 mastername='chromium.fyi') | 88 mastername='chromium.fyi') |
| 84 ) | 89 ) |
| OLD | NEW |