Sha256: 2c64f81bba12e2b73502f9e67b2e86435f971a066656bb34cccdfaeb7b910dc3

Contents?: true

Size: 771 Bytes

Versions: 13

Compression:

Stored size: 771 Bytes

Contents

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from recipe_engine import recipe_api

class PresubmitApi(recipe_api.RecipeApi):
  @property
  def presubmit_support_path(self):
    return self.package_repo_resource('presubmit_support.py')

  def __call__(self, *args, **kwargs):
    """Return a presubmit step."""

    name = kwargs.pop('name', 'presubmit')

    kwargs.setdefault('env', {})
    kwargs['env'].setdefault('PATH', '%(PATH)s')
    kwargs['env']['PATH'] = self.m.path.pathsep.join([
        kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)])

    return self.m.python(
        name, self.presubmit_support_path, list(args), **kwargs)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libv8-5.6.326.50.0beta1 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.5 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.4 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.3 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.2 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.1 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.0 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.3.332.38.0beta2 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.2.361.43.1 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.2.361.43.0 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.1.281.59.1 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.1.281.59.0 vendor/depot_tools/recipe_modules/presubmit/api.py
libv8-5.1.281.59.0beta3 vendor/depot_tools/recipe_modules/presubmit/api.py