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 RecreateSKPs Bot.""" | 6 """Recipe for the Skia RecreateSKPs Bot.""" |
7 | 7 |
8 | 8 |
9 from common.skia import global_constants | 9 from common.skia import global_constants |
10 | 10 |
11 | 11 |
12 DEPS = [ | 12 DEPS = [ |
13 'depot_tools/gclient', | 13 'depot_tools/gclient', |
| 14 'depot_tools/infra_paths', |
14 'recipe_engine/path', | 15 'recipe_engine/path', |
15 'recipe_engine/properties', | 16 'recipe_engine/properties', |
16 'recipe_engine/python', | 17 'recipe_engine/python', |
17 'recipe_engine/raw_io', | 18 'recipe_engine/raw_io', |
18 'recipe_engine/step', | 19 'recipe_engine/step', |
19 ] | 20 ] |
20 | 21 |
21 | 22 |
22 from recipe_engine.recipe_api import Property | 23 from recipe_engine.recipe_api import Property |
23 | 24 |
(...skipping 21 matching lines...) Expand all Loading... |
45 ['build/gyp_chromium'], | 46 ['build/gyp_chromium'], |
46 env={'CPPFLAGS': '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1', | 47 env={'CPPFLAGS': '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1', |
47 'GYP_GENERATORS': 'ninja'}, | 48 'GYP_GENERATORS': 'ninja'}, |
48 cwd=api.path['checkout']) | 49 cwd=api.path['checkout']) |
49 # Build Chrome. | 50 # Build Chrome. |
50 api.step('Build Chrome', | 51 api.step('Build Chrome', |
51 ['ninja', '-C', 'out/Release', 'chrome'], | 52 ['ninja', '-C', 'out/Release', 'chrome'], |
52 cwd=api.path['checkout']) | 53 cwd=api.path['checkout']) |
53 | 54 |
54 # Capture the SKPs. | 55 # Capture the SKPs. |
55 cmd = ['python', api.path['build'].join('scripts', 'slave', 'skia', | 56 cmd = ['python', api.infra_paths['build'].join('scripts', 'slave', 'skia', |
56 'recreate_skps.py'), | 57 'recreate_skps.py'), |
57 api.path['checkout'], | 58 api.path['checkout'], |
58 api.path['checkout'].join('out', 'Release', 'chrome')] | 59 api.path['checkout'].join('out', 'Release', 'chrome')] |
59 if 'Canary' in buildername: | 60 if 'Canary' in buildername: |
60 cmd.append('--dry-run') | 61 cmd.append('--dry-run') |
61 api.step('Recreate SKPs', | 62 api.step('Recreate SKPs', |
62 cmd=cmd, | 63 cmd=cmd, |
63 cwd=api.path['slave_build'].join('skia'), | 64 cwd=api.infra_paths['slave_build'].join('skia'), |
64 ) | 65 ) |
65 | 66 |
66 def GenTests(api): | 67 def GenTests(api): |
67 yield ( | 68 yield ( |
68 api.test('RecreateSKPs') + | 69 api.test('RecreateSKPs') + |
69 api.properties(buildername='Housekeeper-Weekly-RecreateSKPs') | 70 api.properties(buildername='Housekeeper-Weekly-RecreateSKPs') |
70 ) | 71 ) |
71 yield ( | 72 yield ( |
72 api.test('RecreateSKPs_dryrun') + | 73 api.test('RecreateSKPs_dryrun') + |
73 api.properties(buildername='Housekeeper-Nightly-RecreateSKPs_Canary') | 74 api.properties(buildername='Housekeeper-Nightly-RecreateSKPs_Canary') |
74 ) | 75 ) |
OLD | NEW |