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

Side by Side Diff: build/PRESUBMIT.py

Issue 2936433002: Add CQ_INCLUDE_TRYBOTS for GN header checkers (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | 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
(Empty)
1 # Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Presubmit script for //build.
6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools.
9 """
10
11 def PostUploadHook(cl, change, output_api):
12 """git cl upload will call this hook after the issue is created/modified.
13
14 This hook modifies the CL description in order to run extra tests.
15 """
16
17 def affects_gn_checker(f):
18 return 'check_gn_headers' in f.LocalPath()
19 if not change.AffectedFiles(file_filter=affects_gn_checker):
20 return []
21 return output_api.EnsureCQIncludeTrybotsAreAdded(
22 cl,
23 [
24 'master.tryserver.chromium.linux:linux_chromium_dbg_ng',
25 ],
26 'Automatically added tests to run on CQ.')
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698