Skip to content

Commit bfeb07b

Browse files
committed
Add gcl presubmit script to the dart src tree.
Currently I just added a tree status check but we can extend this over time. Review URL: https://chromiumcodereview.appspot.com//10891021 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11575 260f80e4-7a28-3924-810f-c04153c831b5
1 parent 1cf3404 commit bfeb07b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

PRESUBMIT.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2+
# for details. All rights reserved. Use of this source code is governed by a
3+
# BSD-style license that can be found in the LICENSE file.
4+
5+
"""Top-level presubmit script for Dart.
6+
7+
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8+
for more details about the presubmit API built into gcl.
9+
"""
10+
11+
def CheckChangeOnCommit(input_api, output_api):
12+
results = []
13+
status_check = input_api.canned_checks.CheckTreeIsOpen(
14+
input_api,
15+
output_api,
16+
json_url='http://dart-status.appspot.com/current?format=json')
17+
results.extend(status_check)
18+
return results

0 commit comments

Comments
 (0)