| 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 |
| 11 | 11 |
| 12 import re | 12 import re |
| 13 import sys | 13 import sys |
| 14 | 14 |
| 15 | 15 |
| 16 _EXCLUDED_PATHS = ( | 16 _EXCLUDED_PATHS = ( |
| 17 r"^breakpad[\\\/].*", | 17 r"^breakpad[\\\/].*", |
| 18 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", | 18 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", |
| 19 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", | 19 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", |
| 20 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", | 20 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", |
| 21 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", | 21 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", |
| 22 r"^skia[\\\/].*", | 22 r"^skia[\\\/].*", |
| 23 r"^v8[\\\/].*", | 23 r"^v8[\\\/].*", |
| 24 r".*MakeFile$", | 24 r".*MakeFile$", |
| 25 r".+_autogen\.h$", | 25 r".+_autogen\.h$", |
| 26 r".+[\\\/]pnacl_shim\.c$", | 26 r".+[\\\/]pnacl_shim\.c$", |
| 27 r"^gpu[\\\/]config[\\\/].*_list_json\.cc$", | 27 r"^gpu[\\\/]config[\\\/].*_list_json\.cc$", |
| 28 r"^chrome[\\\/]browser[\\\/]resources[\\\/]pdf[\\\/]index.js" |
| 28 ) | 29 ) |
| 29 | 30 |
| 30 # TestRunner and NetscapePlugIn library is temporarily excluded from pan-project | 31 # TestRunner and NetscapePlugIn library is temporarily excluded from pan-project |
| 31 # checks until it's transitioned to chromium coding style. | 32 # checks until it's transitioned to chromium coding style. |
| 32 _TESTRUNNER_PATHS = ( | 33 _TESTRUNNER_PATHS = ( |
| 33 r"^content[\\\/]shell[\\\/]renderer[\\\/]test_runner[\\\/].*", | 34 r"^content[\\\/]shell[\\\/]renderer[\\\/]test_runner[\\\/].*", |
| 34 r"^content[\\\/]shell[\\\/]common[\\\/]test_runner[\\\/].*", | 35 r"^content[\\\/]shell[\\\/]common[\\\/]test_runner[\\\/].*", |
| 35 r"^content[\\\/]shell[\\\/]tools[\\\/]plugin[\\\/].*", | 36 r"^content[\\\/]shell[\\\/]tools[\\\/]plugin[\\\/].*", |
| 36 ) | 37 ) |
| 37 | 38 |
| (...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) | 1459 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) |
| 1459 | 1460 |
| 1460 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1461 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
| 1461 # unless they're .gyp(i) files as changes to those files can break the gyp | 1462 # unless they're .gyp(i) files as changes to those files can break the gyp |
| 1462 # step on that bot. | 1463 # step on that bot. |
| 1463 if (not all(re.search('^chrome', f) for f in files) or | 1464 if (not all(re.search('^chrome', f) for f in files) or |
| 1464 any(re.search('\.gypi?$', f) for f in files)): | 1465 any(re.search('\.gypi?$', f) for f in files)): |
| 1465 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) | 1466 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) |
| 1466 | 1467 |
| 1467 return trybots | 1468 return trybots |
| OLD | NEW |