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

Side by Side Diff: PRESUBMIT.py

Issue 761253003: Add a new buildbot-tool generator for master configs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge to head Created 6 years 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 | « no previous file | scripts/common/fake_filesystem.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Top-level presubmit script for buildbot. 5 """Top-level presubmit script for buildbot.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
8 details on the presubmit API built into gcl. 8 details on the presubmit API built into gcl.
9 """ 9 """
10 10
11 import sys 11 import sys
12 12
13 13
14 def CommonChecks(input_api, output_api): 14 def CommonChecks(input_api, output_api):
15 def join(*args): 15 def join(*args):
16 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) 16 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
17 17
18 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ 18 black_list = list(input_api.DEFAULT_BLACK_LIST) + [
19 r'.*slave/.*/build.*/.*', 19 r'.*slave/.*/build.*/.*',
20 r'.*slave/.*/isolate.*/.*', 20 r'.*slave/.*/isolate.*/.*',
21 r'.*depot_tools/.*', 21 r'.*depot_tools/.*',
22 r'.*goma/.*', 22 r'.*goma/.*',
23 r'.*scripts/tools/buildbot_tool_templates/.*',
23 r'.*scripts/release/.*', 24 r'.*scripts/release/.*',
24 r'.*scripts/slave/recipe_modules/.*', 25 r'.*scripts/slave/recipe_modules/.*',
25 r'.*scripts/gsd_generate_index/.*', 26 r'.*scripts/gsd_generate_index/.*',
26 r'.*masters/.*/templates/.*\.html$', 27 r'.*masters/.*/templates/.*\.html$',
27 r'.*masters/.*/templates/.*\.css$', 28 r'.*masters/.*/templates/.*\.css$',
29 r'.*masters/.*/builders.py',
28 r'.*masters/.*/public_html/.*\.html$', 30 r'.*masters/.*/public_html/.*\.html$',
29 r'.*masters/.*/public_html/.*\.css$', 31 r'.*masters/.*/public_html/.*\.css$',
30 ] 32 ]
31 tests = [] 33 tests = []
32 sys_path_backup = sys.path 34 sys_path_backup = sys.path
33 try: 35 try:
34 sys.path = [ 36 sys.path = [
35 join('third_party'), 37 join('third_party'),
36 join('third_party', 'buildbot_8_4p1'), 38 join('third_party', 'buildbot_8_4p1'),
37 join('third_party', 'buildbot_slave_8_4'), 39 join('third_party', 'buildbot_slave_8_4'),
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 output = CommonChecks(input_api, output_api) 158 output = CommonChecks(input_api, output_api)
157 output.extend(BuildInternalCheck(output, input_api, output_api)) 159 output.extend(BuildInternalCheck(output, input_api, output_api))
158 return output 160 return output
159 161
160 162
161 def CheckChangeOnCommit(input_api, output_api): 163 def CheckChangeOnCommit(input_api, output_api):
162 output = CommonChecks(input_api, output_api) 164 output = CommonChecks(input_api, output_api)
163 output.extend(ConditionalChecks(input_api, output_api)) 165 output.extend(ConditionalChecks(input_api, output_api))
164 output.extend(BuildInternalCheck(output, input_api, output_api)) 166 output.extend(BuildInternalCheck(output, input_api, output_api))
165 return output 167 return output
OLDNEW
« no previous file with comments | « no previous file | scripts/common/fake_filesystem.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698