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", | |
Sam Clegg
2013/02/11 23:18:10
Actually, could we just make this *.mk, since Make
M-A Ruel
2013/02/11 23:23:38
I don't mind either way.
lgtm
| |
21 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", | 22 r"^net[\\\/]tools[\\\/]spdyshark[\\\/].*", |
22 r"^skia[\\\/].*", | 23 r"^skia[\\\/].*", |
23 r"^v8[\\\/].*", | 24 r"^v8[\\\/].*", |
24 r".*MakeFile$", | 25 r".*MakeFile$", |
25 r".+_autogen\.h$", | 26 r".+_autogen\.h$", |
26 r"^cc[\\\/].*", | 27 r"^cc[\\\/].*", |
27 r"^webkit[\\\/]compositor_bindings[\\\/].*", | 28 r"^webkit[\\\/]compositor_bindings[\\\/].*", |
28 r".+[\\\/]pnacl_shim\.c$", | 29 r".+[\\\/]pnacl_shim\.c$", |
29 ) | 30 ) |
30 | 31 |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
868 'win7_aura', | 869 'win7_aura', |
869 'win_rel', | 870 'win_rel', |
870 ] | 871 ] |
871 | 872 |
872 # Match things like path/aura/file.cc and path/file_aura.cc. | 873 # Match things like path/aura/file.cc and path/file_aura.cc. |
873 # Same for chromeos. | 874 # Same for chromeos. |
874 if any(re.search('[/_](aura|chromeos)', f) for f in files): | 875 if any(re.search('[/_](aura|chromeos)', f) for f in files): |
875 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] | 876 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] |
876 | 877 |
877 return trybots | 878 return trybots |
OLD | NEW |