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