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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 | 600 |
601 if not files: | 601 if not files: |
602 return [] | 602 return [] |
603 | 603 |
604 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): | 604 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): |
605 return ['mac_rel', 'mac_asan'] | 605 return ['mac_rel', 'mac_asan'] |
606 if all(re.search('(^|[/_])win[/_.]', f) for f in files): | 606 if all(re.search('(^|[/_])win[/_.]', f) for f in files): |
607 return ['win_rel'] | 607 return ['win_rel'] |
608 if all(re.search('(^|[/_])android[/_.]', f) for f in files): | 608 if all(re.search('(^|[/_])android[/_.]', f) for f in files): |
609 return ['android_dbg'] | 609 return ['android_dbg'] |
| 610 if all(re.search('^native_client_sdk', f) for f in files): |
| 611 return ['linux_nacl_sdk', 'win_nacl_sdk', 'mac_nacl_sdk'] |
610 | 612 |
611 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', | 613 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', |
612 'linux_chromeos', 'android_dbg', 'linux_asan', 'mac_asan'] | 614 'linux_chromeos', 'android_dbg', 'linux_asan', 'mac_asan'] |
613 | 615 |
614 # Match things like path/aura/file.cc and path/file_aura.cc. | 616 # Match things like path/aura/file.cc and path/file_aura.cc. |
615 # Same for ash and chromeos. | 617 # Same for ash and chromeos. |
616 if any(re.search('[/_](ash|aura)', f) for f in files): | 618 if any(re.search('[/_](ash|aura)', f) for f in files): |
617 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile', 'win_aura', | 619 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile', 'win_aura', |
618 'linux_chromeos_asan'] | 620 'linux_chromeos_asan'] |
619 else: | 621 else: |
620 if any(re.search('[/_]chromeos', f) for f in files): | 622 if any(re.search('[/_]chromeos', f) for f in files): |
621 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile', | 623 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile', |
622 'linux_chromeos_asan'] | 624 'linux_chromeos_asan'] |
623 | 625 |
624 return trybots | 626 return trybots |
OLD | NEW |