blob: f8afed5ba5c50f042a32b25ee39140938f45e720 [file] [log] [blame]
rmistry@google.com8e3ff8c2013-01-17 12:55:34 +00001# Copyright (c) 2013 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
6"""Top-level presubmit script for Skia.
7
8See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
9for more details about the presubmit API built into gcl.
10"""
11
12
13def CheckChangeOnUpload(input_api, output_api):
14 """Presubmit checks for the change on upload."""
15 return []
16
17
18def CheckChangeOnCommit(input_api, output_api):
19 """Presubmit checks for the change on commit.
20
21 The following are the presubmit checks:
22 * Ensures that the Skia tree is not closed in
23 http://skia-tree-status.appspot.com/
24 """
25 results = []
26 results.extend(
27 input_api.canned_checks.CheckTreeIsOpen(
28 input_api, output_api, json_url=(
29 'http://skia-tree-status.appspot.com/banner-status?format=json')))
30 return results
31