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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'depot_tools/infra_paths', |
8 'recipe_engine/json', | 9 'recipe_engine/json', |
9 'recipe_engine/path', | 10 'recipe_engine/path', |
10 'recipe_engine/platform', | 11 'recipe_engine/platform', |
11 'recipe_engine/properties', | 12 'recipe_engine/properties', |
12 'recipe_engine/python', | 13 'recipe_engine/python', |
13 'recipe_engine/step', | 14 'recipe_engine/step', |
14 'depot_tools/tryserver', | 15 'depot_tools/tryserver', |
15 'url', | 16 'url', |
16 ] | 17 ] |
17 | 18 |
(...skipping 18 matching lines...) Expand all Loading... |
36 args += ['--asan'] | 37 args += ['--asan'] |
37 | 38 |
38 if api.tryserver.is_tryserver: | 39 if api.tryserver.is_tryserver: |
39 args += ['--dcheck_always_on'] | 40 args += ['--dcheck_always_on'] |
40 | 41 |
41 goma_dir = '' | 42 goma_dir = '' |
42 if 'Win' not in buildername: | 43 if 'Win' not in buildername: |
43 # Disable Goma on Windows as it makes the build much slower (> 1 hour vs | 44 # Disable Goma on Windows as it makes the build much slower (> 1 hour vs |
44 # 15 minutes). Try renabling once we have trybots and the cache would be | 45 # 15 minutes). Try renabling once we have trybots and the cache would be |
45 # warm. | 46 # warm. |
46 goma_dir = api.path['build'].join('goma') | 47 goma_dir = api.infra_paths['build'].join('goma') |
47 env = {} | 48 env = {} |
48 | 49 |
49 if is_debug: | 50 if is_debug: |
50 build_type = "--debug" | 51 build_type = "--debug" |
51 elif is_official: | 52 elif is_official: |
52 build_type = "--official" | 53 build_type = "--official" |
53 else: | 54 else: |
54 build_type = "--release" | 55 build_type = "--release" |
55 | 56 |
56 if goma_dir: | 57 if goma_dir: |
57 env['GOMA_DIR'] = goma_dir | 58 env['GOMA_DIR'] = goma_dir |
58 api.python('mojob gn', | 59 api.python('mojob gn', |
59 mojob_path, | 60 mojob_path, |
60 args=['gn', build_type] + args + gn_args, | 61 args=['gn', build_type] + args + gn_args, |
61 cwd=api.path['checkout'], | 62 cwd=api.path['checkout'], |
62 env=env) | 63 env=env) |
63 api.python('mojob build', | 64 api.python('mojob build', |
64 mojob_path, | 65 mojob_path, |
65 args=['build', build_type] + args, | 66 args=['build', build_type] + args, |
66 env=env) | 67 env=env) |
67 | 68 |
68 | 69 |
69 def _DeviceCheckStep(api): | 70 def _DeviceCheckStep(api): |
70 devices_path = api.m.path['build'].join('site_config', '.known_devices') | 71 devices_path = api.m.infra_paths['build'].join('site_config', '.known_devices'
) |
71 args = [ | 72 args = [ |
72 '--json-output', api.json.output(), | 73 '--json-output', api.json.output(), |
73 '--restart-usb', | 74 '--restart-usb', |
74 '--known-devices-file', devices_path, | 75 '--known-devices-file', devices_path, |
75 ] | 76 ] |
76 try: | 77 try: |
77 result = api.python( | 78 result = api.python( |
78 'device_status_check', | 79 'device_status_check', |
79 api.path['checkout'].join('build', 'android', 'buildbot', | 80 api.path['checkout'].join('build', 'android', 'buildbot', |
80 'bb_device_status_check.py'), | 81 'bb_device_status_check.py'), |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 "serial": "07a00ca4", | 245 "serial": "07a00ca4", |
245 "type": "flo" | 246 "type": "flo" |
246 }])) | 247 }])) |
247 yield test | 248 yield test |
248 yield(api.test('mojo_linux_try') + | 249 yield(api.test('mojo_linux_try') + |
249 api.properties.tryserver(buildername="Mojo Linux Try")) | 250 api.properties.tryserver(buildername="Mojo Linux Try")) |
250 yield(api.test('mojo_android_builder_tests_dbg_fail_device_check') + | 251 yield(api.test('mojo_android_builder_tests_dbg_fail_device_check') + |
251 api.properties.tryserver(buildername="Mojo Android Builder Tests (dbg)") + | 252 api.properties.tryserver(buildername="Mojo Android Builder Tests (dbg)") + |
252 api.step_data("device_status_check", retcode=1)) | 253 api.step_data("device_status_check", retcode=1)) |
253 | 254 |
OLD | NEW |