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 Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 'OS_ANDROID', | 158 'OS_ANDROID', |
159 'OS_ANDROID_HOST', | 159 'OS_ANDROID_HOST', |
160 'OS_BSD', | 160 'OS_BSD', |
161 'OS_CAT', # For testing. | 161 'OS_CAT', # For testing. |
162 'OS_CHROMEOS', | 162 'OS_CHROMEOS', |
163 'OS_FREEBSD', | 163 'OS_FREEBSD', |
164 'OS_IOS', | 164 'OS_IOS', |
165 'OS_LINUX', | 165 'OS_LINUX', |
166 'OS_MACOSX', | 166 'OS_MACOSX', |
167 'OS_NACL', | 167 'OS_NACL', |
| 168 'OS_NACL_NONSFI', |
168 'OS_OPENBSD', | 169 'OS_OPENBSD', |
169 'OS_POSIX', | 170 'OS_POSIX', |
170 'OS_QNX', | 171 'OS_QNX', |
171 'OS_SOLARIS', | 172 'OS_SOLARIS', |
172 'OS_WIN', | 173 'OS_WIN', |
173 ) | 174 ) |
174 | 175 |
175 | 176 |
176 def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): | 177 def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): |
177 """Attempts to prevent use of functions intended only for testing in | 178 """Attempts to prevent use of functions intended only for testing in |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 'Mojo Linux ASan Try', | 1126 'Mojo Linux ASan Try', |
1126 'Mojo Linux Try', | 1127 'Mojo Linux Try', |
1127 ] | 1128 ] |
1128 | 1129 |
1129 return GetDefaultTryConfigs(builders) | 1130 return GetDefaultTryConfigs(builders) |
1130 | 1131 |
1131 def PostUploadHook(cl, change, output_api): | 1132 def PostUploadHook(cl, change, output_api): |
1132 import subprocess | 1133 import subprocess |
1133 subprocess.check_call(["git", "cl", "try"]) | 1134 subprocess.check_call(["git", "cl", "try"]) |
1134 return [] | 1135 return [] |
OLD | NEW |