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

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

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « scripts/slave/recipes/perf/telemetry_harness_upload.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 Skia Infra. 6 # Recipe for Skia Infra.
7 7
8 8
9 DEPS = [ 9 DEPS = [
10 'file',
10 'path', 11 'path',
11 'platform', 12 'platform',
12 'properties', 13 'properties',
13 'python', 14 'python',
14 'raw_io', 15 'raw_io',
15 'rietveld', 16 'rietveld',
16 'step', 17 'step',
17 ] 18 ]
18 19
19 20
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 test_data = lambda: api.raw_io.test_api.stream_output('abc123') 53 test_data = lambda: api.raw_io.test_api.stream_output('abc123')
53 rev_parse = git(api, 'rev-parse', 'HEAD', 54 rev_parse = git(api, 'rev-parse', 'HEAD',
54 cwd=dest, stdout=api.raw_io.output(), 55 cwd=dest, stdout=api.raw_io.output(),
55 step_test_data=test_data) 56 step_test_data=test_data)
56 rev_parse.presentation.properties['got_revision'] = rev_parse.stdout.strip() 57 rev_parse.presentation.properties['got_revision'] = rev_parse.stdout.strip()
57 58
58 59
59 def GenSteps(api): 60 def GenSteps(api):
60 go_dir = api.path['slave_build'].join('go') 61 go_dir = api.path['slave_build'].join('go')
61 go_src = go_dir.join('src') 62 go_src = go_dir.join('src')
62 api.path.makedirs('makedirs go/src', go_src) 63 api.file.makedirs('makedirs go/src', go_src)
63 infra_dir = go_src.join(INFRA_GO) 64 infra_dir = go_src.join(INFRA_GO)
64 65
65 # Check out the infra repo. 66 # Check out the infra repo.
66 git_checkout( 67 git_checkout(
67 api, 68 api,
68 INFRA_GIT_URL, 69 INFRA_GIT_URL,
69 dest=infra_dir, 70 dest=infra_dir,
70 ref=api.properties.get('revision', 'origin/master')) 71 ref=api.properties.get('revision', 'origin/master'))
71 api.path['checkout'] = infra_dir 72 api.path['checkout'] = infra_dir
72 73
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 yield ( 113 yield (
113 api.test('Infra-PerCommit_initialcheckout') 114 api.test('Infra-PerCommit_initialcheckout')
114 ) 115 )
115 yield ( 116 yield (
116 api.test('Infra-PerCommit_try') + 117 api.test('Infra-PerCommit_try') +
117 api.properties(rietveld='https://codereview.chromium.org', 118 api.properties(rietveld='https://codereview.chromium.org',
118 issue=1234, 119 issue=1234,
119 patchset=1, 120 patchset=1,
120 revision=REF_HEAD) 121 revision=REF_HEAD)
121 ) 122 )
OLDNEW
« no previous file with comments | « scripts/slave/recipes/perf/telemetry_harness_upload.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698