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 subprocess | 13 import subprocess |
14 import sys | 14 import sys |
15 | 15 |
16 | 16 |
17 _EXCLUDED_PATHS = ( | 17 _EXCLUDED_PATHS = ( |
18 r"^breakpad[\\\/].*", | 18 r"^breakpad[\\\/].*", |
19 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", | 19 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_rules.py", |
20 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", | 20 r"^native_client_sdk[\\\/]src[\\\/]build_tools[\\\/]make_simple.py", |
21 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", | 21 r"^native_client_sdk[\\\/]src[\\\/]tools[\\\/].*.mk", |
22 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", | 22 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", |
23 r"^skia[\\\/].*", | 23 r"^skia[\\\/].*", |
24 r"^v8[\\\/].*", | 24 r"^v8[\\\/].*", |
25 r".*MakeFile$", | 25 r".*MakeFile$", |
26 r".+_autogen\.h$", | 26 r".+_autogen\.h$", |
27 r"^cc[\\\/].*", | 27 r"^cc[\\\/].*", |
28 r"^webkit[\\\/]compositor_bindings[\\\/].*", | |
29 r".+[\\\/]pnacl_shim\.c$", | 28 r".+[\\\/]pnacl_shim\.c$", |
30 ) | 29 ) |
31 | 30 |
32 # Fragment of a regular expression that matches file name suffixes | 31 # Fragment of a regular expression that matches file name suffixes |
33 # used to indicate different platforms. | 32 # used to indicate different platforms. |
34 _PLATFORM_SPECIFIERS = r'(_(android|chromeos|gtk|mac|posix|win))?' | 33 _PLATFORM_SPECIFIERS = r'(_(android|chromeos|gtk|mac|posix|win))?' |
35 | 34 |
36 # Fragment of a regular expression that matches C++ and Objective-C++ | 35 # Fragment of a regular expression that matches C++ and Objective-C++ |
37 # implementation files. | 36 # implementation files. |
38 _IMPLEMENTATION_EXTENSIONS = r'\.(cc|cpp|cxx|mm)$' | 37 _IMPLEMENTATION_EXTENSIONS = r'\.(cc|cpp|cxx|mm)$' |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 'win_rel', | 870 'win_rel', |
872 'win:compile', | 871 'win:compile', |
873 ] | 872 ] |
874 | 873 |
875 # Match things like path/aura/file.cc and path/file_aura.cc. | 874 # Match things like path/aura/file.cc and path/file_aura.cc. |
876 # Same for chromeos. | 875 # Same for chromeos. |
877 if any(re.search('[/_](aura|chromeos)', f) for f in files): | 876 if any(re.search('[/_](aura|chromeos)', f) for f in files): |
878 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] | 877 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] |
879 | 878 |
880 return trybots | 879 return trybots |
OLD | NEW |