Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: scripts/slave/recipes/skia/recreate_skps.py

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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',
15 'recipe_engine/path', 14 'recipe_engine/path',
16 'recipe_engine/properties', 15 'recipe_engine/properties',
17 'recipe_engine/python', 16 'recipe_engine/python',
18 'recipe_engine/raw_io', 17 'recipe_engine/raw_io',
19 'recipe_engine/step', 18 'recipe_engine/step',
20 ] 19 ]
21 20
22 21
23 from recipe_engine.recipe_api import Property 22 from recipe_engine.recipe_api import Property
24 23
(...skipping 21 matching lines...) Expand all
46 ['build/gyp_chromium'], 45 ['build/gyp_chromium'],
47 env={'CPPFLAGS': '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1', 46 env={'CPPFLAGS': '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1',
48 'GYP_GENERATORS': 'ninja'}, 47 'GYP_GENERATORS': 'ninja'},
49 cwd=api.path['checkout']) 48 cwd=api.path['checkout'])
50 # Build Chrome. 49 # Build Chrome.
51 api.step('Build Chrome', 50 api.step('Build Chrome',
52 ['ninja', '-C', 'out/Release', 'chrome'], 51 ['ninja', '-C', 'out/Release', 'chrome'],
53 cwd=api.path['checkout']) 52 cwd=api.path['checkout'])
54 53
55 # Capture the SKPs. 54 # Capture the SKPs.
56 cmd = ['python', api.infra_paths['build'].join('scripts', 'slave', 'skia', 55 cmd = ['python', api.path['build'].join('scripts', 'slave', 'skia',
57 'recreate_skps.py'), 56 'recreate_skps.py'),
58 api.path['checkout'], 57 api.path['checkout'],
59 api.path['checkout'].join('out', 'Release', 'chrome')] 58 api.path['checkout'].join('out', 'Release', 'chrome')]
60 if 'Canary' in buildername: 59 if 'Canary' in buildername:
61 cmd.append('--dry-run') 60 cmd.append('--dry-run')
62 api.step('Recreate SKPs', 61 api.step('Recreate SKPs',
63 cmd=cmd, 62 cmd=cmd,
64 cwd=api.infra_paths['slave_build'].join('skia'), 63 cwd=api.path['slave_build'].join('skia'),
65 ) 64 )
66 65
67 def GenTests(api): 66 def GenTests(api):
68 yield ( 67 yield (
69 api.test('RecreateSKPs') + 68 api.test('RecreateSKPs') +
70 api.properties(buildername='Housekeeper-Weekly-RecreateSKPs') 69 api.properties(buildername='Housekeeper-Weekly-RecreateSKPs')
71 ) 70 )
72 yield ( 71 yield (
73 api.test('RecreateSKPs_dryrun') + 72 api.test('RecreateSKPs_dryrun') +
74 api.properties(buildername='Housekeeper-Nightly-RecreateSKPs_Canary') 73 api.properties(buildername='Housekeeper-Nightly-RecreateSKPs_Canary')
75 ) 74 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698