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

Side by Side Diff: scripts/slave/recipes/codesearch.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
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 DEPS = [ 5 DEPS = [
6 'bot_update', 6 'bot_update',
7 'chromium', 7 'chromium',
8 'file',
8 'gclient', 9 'gclient',
9 'gsutil', 10 'gsutil',
10 'path', 11 'path',
11 'properties', 12 'properties',
12 'python', 13 'python',
13 'raw_io', 14 'raw_io',
14 'step', 15 'step',
15 ] 16 ]
16 17
17 INDEX_PACK_NAME = 'index_pack.zip' 18 INDEX_PACK_NAME = 'index_pack.zip'
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 # Create the index pack 78 # Create the index pack
78 api.python('create index pack', 79 api.python('create index pack',
79 api.path['build'].join('scripts', 'slave', 'chromium', 80 api.path['build'].join('scripts', 'slave', 'chromium',
80 'package_index.py'), 81 'package_index.py'),
81 ['--path-to-compdb', debug_path.join('compile_commands.json'), 82 ['--path-to-compdb', debug_path.join('compile_commands.json'),
82 '--path-to-archive-output', debug_path.join(INDEX_PACK_NAME)]) 83 '--path-to-archive-output', debug_path.join(INDEX_PACK_NAME)])
83 84
84 # Remove the llvm-build directory, so that gclient runhooks will download 85 # Remove the llvm-build directory, so that gclient runhooks will download
85 # the pre-built clang binary and not use the locally compiled binary from 86 # the pre-built clang binary and not use the locally compiled binary from
86 # the 'compile translation_unit clang tool' step. 87 # the 'compile translation_unit clang tool' step.
87 api.path.rmtree('llvm-build', 88 api.file.rmtree('llvm-build',
88 api.path['checkout'].join('third_party', 'llvm-build')) 89 api.path['checkout'].join('third_party', 'llvm-build'))
89 90
90 # Upload the index pack 91 # Upload the index pack
91 api.gsutil.upload( 92 api.gsutil.upload(
92 name='upload index pack', 93 name='upload index pack',
93 source=debug_path.join(INDEX_PACK_NAME), 94 source=debug_path.join(INDEX_PACK_NAME),
94 bucket=bucket_name, 95 bucket=bucket_name,
95 dest='index_pack_%s.zip' % buildnumber 96 dest='index_pack_%s.zip' % buildnumber
96 ) 97 )
97 98
(...skipping 30 matching lines...) Expand all
128 api.test('codesearch_test_fail_clang_tool') + 129 api.test('codesearch_test_fail_clang_tool') +
129 api.step_data('generate compilation database', 130 api.step_data('generate compilation database',
130 stdout=api.raw_io.output('some compilation data')) + 131 stdout=api.raw_io.output('some compilation data')) +
131 api.step_data('run translation_unit clang tool', retcode=2) + 132 api.step_data('run translation_unit clang tool', retcode=2) +
132 api.properties.generic( 133 api.properties.generic(
133 repo_name='src', 134 repo_name='src',
134 repo_url='svn://svn-mirror.golo.chromium.org/chrome/trunk', 135 repo_url='svn://svn-mirror.golo.chromium.org/chrome/trunk',
135 ) 136 )
136 ) 137 )
137 138
OLDNEW
« no previous file with comments | « scripts/slave/recipes/chromium_codesearch.py ('k') | scripts/slave/recipes/crashpad/continuous.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698