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