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 from contextlib import contextmanager | 5 from contextlib import contextmanager |
6 from recipe_engine import recipe_api | 6 from recipe_engine import recipe_api |
7 from recipe_engine.types import freeze | 7 from recipe_engine.types import freeze |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'chromium', | 10 'chromium', |
11 'chromium_android', | 11 'chromium_android', |
12 'bot_update', | 12 'bot_update', |
13 'gclient', | 13 'gclient', |
14 'recipe_engine/path', | 14 'recipe_engine/path', |
15 'recipe_engine/properties', | 15 'recipe_engine/properties', |
16 'recipe_engine/step', | 16 'recipe_engine/step', |
17 'tryserver', | 17 'tryserver', |
18 ] | 18 ] |
19 | 19 |
20 @contextmanager | 20 @contextmanager |
21 def FYIStep(): | 21 def FYIStep(): |
22 try: | 22 try: |
23 yield | 23 yield |
24 except recipe_api.StepFailure: | 24 except recipe_api.StepFailure: |
25 pass | 25 pass |
26 | 26 |
27 BUILDERS = freeze({ | 27 BUILDERS = freeze({ |
28 'chromium.android': { | 28 'chromium.android': { |
29 'Android x64 Builder (dbg)': { | 29 'Android x64 Builder (dbg)': { |
30 'recipe_config': 'x64_builder', | 30 'recipe_config': 'x64_builder_mb', |
31 'check_licenses': FYIStep, | 31 'check_licenses': FYIStep, |
32 'gclient_apply_config': ['android', 'chrome_internal'], | 32 'gclient_apply_config': ['android', 'chrome_internal'], |
33 }, | 33 }, |
34 'Android x86 Builder (dbg)' : { | 34 'Android x86 Builder (dbg)' : { |
35 'recipe_config': 'x86_builder', | 35 'recipe_config': 'x86_builder_mb', |
36 'check_licenses': FYIStep, | 36 'check_licenses': FYIStep, |
37 'gclient_apply_config': ['android', 'chrome_internal'], | 37 'gclient_apply_config': ['android', 'chrome_internal'], |
38 }, | 38 }, |
39 'Android MIPS Builder (dbg)': { | 39 'Android MIPS Builder (dbg)': { |
40 'recipe_config': 'mipsel_builder', | 40 'recipe_config': 'mipsel_builder_mb', |
41 'check_licenses': FYIStep, | 41 'check_licenses': FYIStep, |
42 'gclient_apply_config': ['android', 'chrome_internal'], | 42 'gclient_apply_config': ['android', 'chrome_internal'], |
43 }, | 43 }, |
44 }, | 44 }, |
45 'chromium.perf.fyi': { | 45 'chromium.perf.fyi': { |
46 'android_oilpan_builder': { | 46 'android_oilpan_builder': { |
47 'recipe_config': 'oilpan_builder', | 47 'recipe_config': 'oilpan_builder', |
48 'gclient_apply_config': ['android', 'chrome_internal'], | 48 'gclient_apply_config': ['android', 'chrome_internal'], |
49 'kwargs': { | 49 'kwargs': { |
50 'BUILD_CONFIG': 'Release', | 50 'BUILD_CONFIG': 'Release', |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 '_'.join(_sanitize_nonalpha(step) for step in steps))) + | 229 '_'.join(_sanitize_nonalpha(step) for step in steps))) + |
230 props(mastername=mastername, buildername=buildername) + | 230 props(mastername=mastername, buildername=buildername) + |
231 reduce(lambda a, b: a + b, | 231 reduce(lambda a, b: a + b, |
232 (api.step_data(step, retcode=1) for step in steps)) | 232 (api.step_data(step, retcode=1) for step in steps)) |
233 ) | 233 ) |
234 | 234 |
235 yield step_failure(mastername='chromium.android', | 235 yield step_failure(mastername='chromium.android', |
236 buildername='Android x64 Builder (dbg)', | 236 buildername='Android x64 Builder (dbg)', |
237 steps=['check licenses']) | 237 steps=['check licenses']) |
238 | 238 |
OLD | NEW |