diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-08-15 13:48:20 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-08-15 13:49:15 -0700 |
commit | 66f77963a368f8696c26db7b42e510fc0b2aebbf (patch) | |
tree | eeb2694f71a882bbf637214b7d44ad5cf4e77237 /tools/gyp/PRESUBMIT.py | |
parent | 25a5e90289965d60f8aad5138b1321ce267c2242 (diff) | |
download | node-66f77963a368f8696c26db7b42e510fc0b2aebbf.tar.gz |
Upgrade GYP to r995
Diffstat (limited to 'tools/gyp/PRESUBMIT.py')
-rwxr-xr-x | tools/gyp/PRESUBMIT.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/gyp/PRESUBMIT.py b/tools/gyp/PRESUBMIT.py new file mode 100755 index 000000000..737584bc7 --- /dev/null +++ b/tools/gyp/PRESUBMIT.py @@ -0,0 +1,41 @@ +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + + +"""Top-level presubmit script for GYP. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into gcl. +""" + + +def CheckChangeOnUpload(input_api, output_api): + report = [] + report.extend(input_api.canned_checks.PanProjectChecks( + input_api, output_api)) + return report + + +def CheckChangeOnCommit(input_api, output_api): + report = [] + license = ( + r'.*? Copyright \(c\) %(year)s Google Inc\. All rights reserved\.\n' + r'.*? Use of this source code is governed by a BSD-style license that ' + r'can be\n' + r'.*? found in the LICENSE file\.\n' + ) % { + 'year': input_api.time.strftime('%Y'), + } + + report.extend(input_api.canned_checks.PanProjectChecks( + input_api, output_api, license_header=license)) + report.extend(input_api.canned_checks.CheckTreeIsOpen( + input_api, output_api, + 'http://gyp-status.appspot.com/status', + 'http://gyp-status.appspot.com/current')) + return report + + +def GetPreferredTrySlaves(): + return ['gyp-win32', 'gyp-win64', 'gyp-linux', 'gyp-mac'] |