| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 DEPS = [ | 5 DEPS = [ |
| 6 'adb', | 6 'adb', |
| 7 'depot_tools/bot_update', | 7 'depot_tools/bot_update', |
| 8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
| 9 'goma', | 9 'goma', |
| 10 'recipe_engine/json', | 10 'recipe_engine/json', |
| 11 'recipe_engine/path', | 11 'recipe_engine/path', |
| 12 'recipe_engine/platform', | 12 'recipe_engine/platform', |
| 13 'recipe_engine/properties', | 13 'recipe_engine/properties', |
| 14 'recipe_engine/python', | 14 'recipe_engine/python', |
| 15 'recipe_engine/step', | 15 'recipe_engine/step', |
| 16 'depot_tools/tryserver', | 16 'depot_tools/tryserver', |
| 17 'url', | 17 'url', |
| 18 ] | 18 ] |
| 19 | 19 |
| 20 | 20 |
| 21 def _CheckoutSteps(api, buildername): | 21 def _CheckoutSteps(api, buildername): |
| 22 # Checkout mojo and its dependencies (specified in DEPS) using gclient | 22 # Checkout mojo and its dependencies (specified in DEPS) using gclient |
| 23 api.gclient.set_config('mojo') | 23 api.gclient.set_config('mojo') |
| 24 if 'Android' in buildername: | 24 if 'Android' in buildername: |
| 25 api.gclient.apply_config('android') | 25 api.gclient.apply_config('android') |
| 26 api.bot_update.ensure_checkout(force=True) | 26 api.bot_update.ensure_checkout() |
| 27 api.gclient.runhooks() | 27 api.gclient.runhooks() |
| 28 | 28 |
| 29 | 29 |
| 30 def _BuildSteps(api, buildername, is_debug, is_official): | 30 def _BuildSteps(api, buildername, is_debug, is_official): |
| 31 mojob_path = api.path['checkout'].join('mojo', 'tools', 'mojob.py') | 31 mojob_path = api.path['checkout'].join('mojo', 'tools', 'mojob.py') |
| 32 args = [] | 32 args = [] |
| 33 gn_args = [] | 33 gn_args = [] |
| 34 if 'Android' in buildername: | 34 if 'Android' in buildername: |
| 35 args += ['--android'] | 35 args += ['--android'] |
| 36 | 36 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 "usb_status": True, | 289 "usb_status": True, |
| 290 }, | 290 }, |
| 291 {} | 291 {} |
| 292 ])) | 292 ])) |
| 293 yield test | 293 yield test |
| 294 yield(api.test('mojo_linux_try') + | 294 yield(api.test('mojo_linux_try') + |
| 295 api.properties.tryserver(buildername="Mojo Linux Try")) | 295 api.properties.tryserver(buildername="Mojo Linux Try")) |
| 296 yield(api.test('mojo_android_builder_tests_dbg_fail_device_check') + | 296 yield(api.test('mojo_android_builder_tests_dbg_fail_device_check') + |
| 297 api.properties.tryserver(buildername="Mojo Android Builder Tests (dbg)") + | 297 api.properties.tryserver(buildername="Mojo Android Builder Tests (dbg)") + |
| 298 api.step_data("device_status", retcode=1)) | 298 api.step_data("device_status", retcode=1)) |
| OLD | NEW |