| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 return results | 837 return results |
| 838 | 838 |
| 839 | 839 |
| 840 def GetPreferredTrySlaves(project, change): | 840 def GetPreferredTrySlaves(project, change): |
| 841 files = change.LocalPaths() | 841 files = change.LocalPaths() |
| 842 | 842 |
| 843 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): | 843 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): |
| 844 return [] | 844 return [] |
| 845 | 845 |
| 846 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): | 846 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): |
| 847 return ['mac_rel', 'mac_asan'] | 847 return ['mac_rel', 'mac_asan', 'mac:compile'] |
| 848 if all(re.search('(^|[/_])win[/_.]', f) for f in files): | 848 if all(re.search('(^|[/_])win[/_.]', f) for f in files): |
| 849 return ['win_rel'] | 849 return ['win_rel', 'win7_aura', 'win:compile'] |
| 850 if all(re.search('(^|[/_])android[/_.]', f) for f in files): | 850 if all(re.search('(^|[/_])android[/_.]', f) for f in files): |
| 851 return ['android_dbg', 'android_clang_dbg'] | 851 return ['android_dbg', 'android_clang_dbg'] |
| 852 if all(re.search('^native_client_sdk', f) for f in files): | 852 if all(re.search('^native_client_sdk', f) for f in files): |
| 853 return ['linux_nacl_sdk', 'win_nacl_sdk', 'mac_nacl_sdk'] | 853 return ['linux_nacl_sdk', 'win_nacl_sdk', 'mac_nacl_sdk'] |
| 854 if all(re.search('[/_]ios[/_.]', f) for f in files): | 854 if all(re.search('[/_]ios[/_.]', f) for f in files): |
| 855 return ['ios_rel_device', 'ios_dbg_simulator'] | 855 return ['ios_rel_device', 'ios_dbg_simulator'] |
| 856 | 856 |
| 857 trybots = [ | 857 trybots = [ |
| 858 'android_clang_dbg', | 858 'android_clang_dbg', |
| 859 'android_dbg', | 859 'android_dbg', |
| 860 'ios_dbg_simulator', | 860 'ios_dbg_simulator', |
| 861 'ios_rel_device', | 861 'ios_rel_device', |
| 862 'linux_asan', | 862 'linux_asan', |
| 863 'linux_aura', | 863 'linux_aura', |
| 864 'linux_chromeos', | 864 'linux_chromeos', |
| 865 'linux_clang:compile', | 865 'linux_clang:compile', |
| 866 'linux_rel', | 866 'linux_rel', |
| 867 'mac_asan', | 867 'mac_asan', |
| 868 'mac_rel', | 868 'mac_rel', |
| 869 'mac:compile', |
| 869 'win7_aura', | 870 'win7_aura', |
| 870 'win_rel', | 871 'win_rel', |
| 872 'win:compile', |
| 871 ] | 873 ] |
| 872 | 874 |
| 873 # Match things like path/aura/file.cc and path/file_aura.cc. | 875 # Match things like path/aura/file.cc and path/file_aura.cc. |
| 874 # Same for chromeos. | 876 # Same for chromeos. |
| 875 if any(re.search('[/_](aura|chromeos)', f) for f in files): | 877 if any(re.search('[/_](aura|chromeos)', f) for f in files): |
| 876 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] | 878 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] |
| 877 | 879 |
| 878 return trybots | 880 return trybots |
| OLD | NEW |