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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 return ['mac_rel'] | 585 return ['mac_rel'] |
586 if all(re.search('[/_]win[/_.]', f) for f in files): | 586 if all(re.search('[/_]win[/_.]', f) for f in files): |
587 return ['win_rel'] | 587 return ['win_rel'] |
588 if all(re.search('[/_]android[/_.]', f) for f in files): | 588 if all(re.search('[/_]android[/_.]', f) for f in files): |
589 return ['android'] | 589 return ['android'] |
590 | 590 |
591 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', | 591 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', |
592 'android'] | 592 'android'] |
593 | 593 |
594 # Match things like path/aura/file.cc and path/file_aura.cc. | 594 # Match things like path/aura/file.cc and path/file_aura.cc. |
595 # Same for chromeos. | 595 # Same for ash and chromeos. |
596 if any(re.search('[/_](aura|chromeos)', f) for f in files): | 596 if any(re.search('[/_](ash|aura)', f) for f in files): |
597 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile'] | 597 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile', 'win_aura'] |
| 598 else: |
| 599 if any(re.search('[/_]chromeos', f) for f in files): |
| 600 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile'] |
598 | 601 |
599 return trybots | 602 return trybots |
OLD | NEW |