| 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 16 matching lines...) Expand all Loading... |
| 27 r'.*masters/.*/public_html/.*\.html$', | 27 r'.*masters/.*/public_html/.*\.html$', |
| 28 r'.*masters/.*/public_html/.*\.css$', | 28 r'.*masters/.*/public_html/.*\.css$', |
| 29 ] | 29 ] |
| 30 tests = [] | 30 tests = [] |
| 31 sys_path_backup = sys.path | 31 sys_path_backup = sys.path |
| 32 try: | 32 try: |
| 33 sys.path = [ | 33 sys.path = [ |
| 34 join('third_party'), | 34 join('third_party'), |
| 35 join('third_party', 'buildbot_8_4p1'), | 35 join('third_party', 'buildbot_8_4p1'), |
| 36 join('third_party', 'buildbot_slave_8_4'), | 36 join('third_party', 'buildbot_slave_8_4'), |
| 37 join('third_party', 'coverage-3.6'), | 37 join('third_party', 'coverage-3.7.1'), |
| 38 join('third_party', 'decorator_3_3_1'), | 38 join('third_party', 'decorator_3_3_1'), |
| 39 join('third_party', 'jinja2'), | 39 join('third_party', 'jinja2'), |
| 40 join('third_party', 'mock-1.0.1'), | 40 join('third_party', 'mock-1.0.1'), |
| 41 join('third_party', 'sqlalchemy_0_7_1'), | 41 join('third_party', 'sqlalchemy_0_7_1'), |
| 42 join('third_party', 'sqlalchemy_migrate_0_7_1'), | 42 join('third_party', 'sqlalchemy_migrate_0_7_1'), |
| 43 join('third_party', 'tempita_0_5'), | 43 join('third_party', 'tempita_0_5'), |
| 44 join('third_party', 'twisted_10_2'), | 44 join('third_party', 'twisted_10_2'), |
| 45 join('scripts'), | 45 join('scripts'), |
| 46 # Initially, a separate run was done for unit tests but now that | 46 # Initially, a separate run was done for unit tests but now that |
| 47 # pylint is fetched in memory with setuptools, it seems it caches | 47 # pylint is fetched in memory with setuptools, it seems it caches |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 | 118 |
| 119 def CheckChangeOnUpload(input_api, output_api): | 119 def CheckChangeOnUpload(input_api, output_api): |
| 120 output = CommonChecks(input_api, output_api) | 120 output = CommonChecks(input_api, output_api) |
| 121 output.extend(BuildInternalCheck(output, input_api, output_api)) | 121 output.extend(BuildInternalCheck(output, input_api, output_api)) |
| 122 return output | 122 return output |
| 123 | 123 |
| 124 | 124 |
| 125 def CheckChangeOnCommit(input_api, output_api): | 125 def CheckChangeOnCommit(input_api, output_api): |
| 126 return CheckChangeOnUpload(input_api, output_api) | 126 return CheckChangeOnUpload(input_api, output_api) |
| OLD | NEW |