| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Top-level presubmit script for buildbot. | 5 """Top-level presubmit script for buildbot. |
| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 r'.*scripts/release/.*', | 21 r'.*scripts/release/.*', |
| 22 r'.+_bb7\.py$', | 22 r'.+_bb7\.py$', |
| 23 r'.*masters/.*/templates/.*\.html$', | 23 r'.*masters/.*/templates/.*\.html$', |
| 24 ] | 24 ] |
| 25 tests = [] | 25 tests = [] |
| 26 sys_path_backup = sys.path | 26 sys_path_backup = sys.path |
| 27 try: | 27 try: |
| 28 sys.path = [ | 28 sys.path = [ |
| 29 join('third_party'), | 29 join('third_party'), |
| 30 join('third_party', 'buildbot_8_4p1'), | 30 join('third_party', 'buildbot_8_4p1'), |
| 31 join('third_party', 'coverage-3.6'), |
| 31 join('third_party', 'decorator_3_3_1'), | 32 join('third_party', 'decorator_3_3_1'), |
| 32 join('third_party', 'jinja2'), | 33 join('third_party', 'jinja2'), |
| 33 join('third_party', 'mock-1.0.1'), | 34 join('third_party', 'mock-1.0.1'), |
| 34 join('third_party', 'sqlalchemy_0_7_1'), | 35 join('third_party', 'sqlalchemy_0_7_1'), |
| 35 join('third_party', 'sqlalchemy_migrate_0_7_1'), | 36 join('third_party', 'sqlalchemy_migrate_0_7_1'), |
| 36 join('third_party', 'tempita_0_5'), | 37 join('third_party', 'tempita_0_5'), |
| 37 join('third_party', 'twisted_10_2'), | 38 join('third_party', 'twisted_10_2'), |
| 38 join('scripts'), | 39 join('scripts'), |
| 39 # Initially, a separate run was done for unit tests but now that | 40 # Initially, a separate run was done for unit tests but now that |
| 40 # pylint is fetched in memory with setuptools, it seems it caches | 41 # pylint is fetched in memory with setuptools, it seems it caches |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 107 |
| 107 | 108 |
| 108 def CheckChangeOnUpload(input_api, output_api): | 109 def CheckChangeOnUpload(input_api, output_api): |
| 109 output = CommonChecks(input_api, output_api) | 110 output = CommonChecks(input_api, output_api) |
| 110 output.extend(BuildInternalCheck(output, input_api, output_api)) | 111 output.extend(BuildInternalCheck(output, input_api, output_api)) |
| 111 return output | 112 return output |
| 112 | 113 |
| 113 | 114 |
| 114 def CheckChangeOnCommit(input_api, output_api): | 115 def CheckChangeOnCommit(input_api, output_api): |
| 115 return CheckChangeOnUpload(input_api, output_api) | 116 return CheckChangeOnUpload(input_api, output_api) |
| OLD | NEW |