OLD | NEW |
1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 """Top-level presubmit script for swarming-server. | 5 """Top-level presubmit script for swarming-server. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for |
8 details on the presubmit API built into gcl. | 8 details on the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
11 | 11 |
12 def FindAppEngineSDK(input_api): | 12 def FindAppEngineSDK(input_api): |
13 """Returns an absolute path to AppEngine SDK (or None if not found).""" | 13 """Returns an absolute path to AppEngine SDK (or None if not found).""" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 output.extend(input_api.RunTests(tests, parallel=True)) | 93 output.extend(input_api.RunTests(tests, parallel=True)) |
94 return output | 94 return output |
95 | 95 |
96 | 96 |
97 def CheckChangeOnUpload(input_api, output_api): | 97 def CheckChangeOnUpload(input_api, output_api): |
98 return CommonChecks(input_api, output_api) | 98 return CommonChecks(input_api, output_api) |
99 | 99 |
100 | 100 |
101 def CheckChangeOnCommit(input_api, output_api): | 101 def CheckChangeOnCommit(input_api, output_api): |
102 return CommonChecks(input_api, output_api) | 102 return CommonChecks(input_api, output_api) |
OLD | NEW |