| rmistry@google.com | 8e3ff8c | 2013-01-17 12:55:34 +0000 | [diff] [blame] | 1 | # 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 | |
| 8 | See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 9 | for more details about the presubmit API built into gcl. |
| 10 | """ |
| 11 | |
| 12 | |
| 13 | def CheckChangeOnUpload(input_api, output_api): |
| 14 | """Presubmit checks for the change on upload.""" |
| 15 | return [] |
| 16 | |
| 17 | |
| 18 | def 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 | |