Sha256: 86d1b7a65d3811e15139b6e936a7f6171746da627779cb9c50fa43be5d97fe67

Contents?: true

Size: 1.45 KB

Versions: 16

Compression:

Stored size: 1.45 KB

Contents

# 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'))

  import sys
  old_sys_path = sys.path
  try:
    sys.path = ['pylib', 'test/lib'] + sys.path
    report.extend(input_api.canned_checks.RunPylint(
        input_api,
        output_api))
  finally:
    sys.path = old_sys_path
  return report


def GetPreferredTrySlaves():
  return ['gyp-win32', 'gyp-win64', 'gyp-linux', 'gyp-mac']

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.16 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.13 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.12 vendor/v8/build/gyp/PRESUBMIT.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.11 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.10 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.9 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.8 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.7 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.4 vendor/v8/build/gyp/PRESUBMIT.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.3 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.1 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.11.8.0 vendor/v8/build/gyp/PRESUBMIT.py
libv8-3.10.8.0 vendor/v8/build/gyp/PRESUBMIT.py