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 the Skia PerCommit Housekeeper. | 6 # Recipe for the Skia PerCommit Housekeeper. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
| 10 'depot_tools/infra_paths', |
10 'recipe_engine/path', | 11 'recipe_engine/path', |
11 'recipe_engine/properties', | 12 'recipe_engine/properties', |
12 'recipe_engine/python', | 13 'recipe_engine/python', |
13 'skia', | 14 'skia', |
14 'recipe_engine/step', | 15 'recipe_engine/step', |
15 ] | 16 ] |
16 | 17 |
17 | 18 |
18 def RunSteps(api): | 19 def RunSteps(api): |
19 # Checkout, compile, etc. | 20 # Checkout, compile, etc. |
20 api.skia.gen_steps() | 21 api.skia.gen_steps() |
21 | 22 |
22 cwd = api.path['checkout'] | 23 cwd = api.path['checkout'] |
23 | 24 |
24 api.skia.run( | 25 api.skia.run( |
25 api.step, | 26 api.step, |
26 'android platform self-tests', | 27 'android platform self-tests', |
27 cmd=['python', | 28 cmd=['python', |
28 cwd.join('platform_tools', 'android', 'tests', 'run_all.py')], | 29 cwd.join('platform_tools', 'android', 'tests', 'run_all.py')], |
29 cwd=cwd, | 30 cwd=cwd, |
30 abort_on_failure=False) | 31 abort_on_failure=False) |
31 | 32 |
32 # TODO(borenet): Detect static initializers? | 33 # TODO(borenet): Detect static initializers? |
33 | 34 |
34 gsutil_path = api.path['depot_tools'].join('third_party', 'gsutil', | 35 gsutil_path = api.infra_paths['depot_tools'].join('third_party', 'gsutil', |
35 'gsutil') | 36 'gsutil') |
36 if not api.skia.is_trybot: | 37 if not api.skia.is_trybot: |
37 api.skia.run( | 38 api.skia.run( |
38 api.step, | 39 api.step, |
39 'generate and upload doxygen', | 40 'generate and upload doxygen', |
40 cmd=['python', api.skia.resource('generate_and_upload_doxygen.py'), | 41 cmd=['python', api.skia.resource('generate_and_upload_doxygen.py'), |
41 gsutil_path], | 42 gsutil_path], |
42 cwd=cwd, | 43 cwd=cwd, |
43 abort_on_failure=False) | 44 abort_on_failure=False) |
44 | 45 |
(...skipping 23 matching lines...) Expand all Loading... |
68 ) | 69 ) |
69 | 70 |
70 buildername = 'Housekeeper-PerCommit-Trybot' | 71 buildername = 'Housekeeper-PerCommit-Trybot' |
71 yield ( | 72 yield ( |
72 api.test(buildername) + | 73 api.test(buildername) + |
73 api.properties(buildername=buildername, | 74 api.properties(buildername=buildername, |
74 mastername=mastername, | 75 mastername=mastername, |
75 slavename=slavename, | 76 slavename=slavename, |
76 issue=500) | 77 issue=500) |
77 ) | 78 ) |
OLD | NEW |