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 """ | 5 """ |
6 Recipe for building and running tests for Libyuv stand-alone. | 6 Recipe for building and running tests for Libyuv stand-alone. |
7 """ | 7 """ |
8 | 8 |
9 from recipe_engine.types import freeze | 9 from recipe_engine.types import freeze |
10 | 10 |
11 DEPS = [ | 11 DEPS = [ |
12 'chromium', | 12 'chromium', |
13 'depot_tools/bot_update', | 13 'depot_tools/bot_update', |
14 'depot_tools/gclient', | 14 'depot_tools/gclient', |
15 'depot_tools/tryserver', | 15 'depot_tools/tryserver', |
16 'libyuv', | 16 'libyuv', |
17 'recipe_engine/path', | 17 'recipe_engine/path', |
18 'recipe_engine/platform', | 18 'recipe_engine/platform', |
19 'recipe_engine/properties', | 19 'recipe_engine/properties', |
20 'recipe_engine/step', | 20 'recipe_engine/step', |
21 ] | 21 ] |
22 | 22 |
23 def RunSteps(api): | 23 def RunSteps(api): |
24 libyuv = api.libyuv | 24 libyuv = api.libyuv |
25 libyuv.apply_bot_config(libyuv.BUILDERS, libyuv.RECIPE_CONFIGS) | 25 libyuv.apply_bot_config(libyuv.BUILDERS, libyuv.RECIPE_CONFIGS) |
26 | 26 |
27 api.bot_update.ensure_checkout() | 27 api.bot_update.ensure_checkout() |
| 28 api.chromium.cleanup_temp() |
28 api.chromium.ensure_goma() | 29 api.chromium.ensure_goma() |
29 api.chromium.runhooks() | 30 api.chromium.runhooks() |
30 | 31 |
31 if libyuv.should_build: | 32 if libyuv.should_build: |
32 if api.chromium.c.project_generator.tool == 'gn': | 33 if api.chromium.c.project_generator.tool == 'gn': |
33 api.chromium.run_gn(use_goma=True) | 34 api.chromium.run_gn(use_goma=True) |
34 api.chromium.compile(targets=['all']) | 35 api.chromium.compile(targets=['all']) |
35 else: | 36 else: |
36 api.chromium.compile() | 37 api.chromium.compile() |
37 | 38 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 77 |
77 # Forced builds (not specifying any revision) and test failures. | 78 # Forced builds (not specifying any revision) and test failures. |
78 mastername = 'client.libyuv' | 79 mastername = 'client.libyuv' |
79 yield generate_builder(mastername, 'Linux64 Debug', revision=None, | 80 yield generate_builder(mastername, 'Linux64 Debug', revision=None, |
80 suffix='_forced') | 81 suffix='_forced') |
81 yield generate_builder(mastername, 'Android Debug', revision=None, | 82 yield generate_builder(mastername, 'Android Debug', revision=None, |
82 suffix='_forced') | 83 suffix='_forced') |
83 | 84 |
84 yield generate_builder('tryserver.libyuv', 'linux', revision=None, | 85 yield generate_builder('tryserver.libyuv', 'linux', revision=None, |
85 suffix='_forced') | 86 suffix='_forced') |
OLD | NEW |