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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files): | 559 if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files): |
560 return ['mac_rel'] | 560 return ['mac_rel'] |
561 if all(re.search('[/_]win[/_.]', f) for f in files): | 561 if all(re.search('[/_]win[/_.]', f) for f in files): |
562 return ['win_rel'] | 562 return ['win_rel'] |
563 if all(re.search('[/_]android[/_.]', f) for f in files): | 563 if all(re.search('[/_]android[/_.]', f) for f in files): |
564 return ['android'] | 564 return ['android'] |
565 | 565 |
566 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', | 566 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', |
567 'android'] | 567 'android'] |
568 # match things like aurax11.cc or aura_oak.cc | 568 |
569 if any(re.search('[/_]aura', f) for f in files): | 569 # Match things like path/aura/file.cc and path/file_aura.cc. |
570 trybots.append('linux_chromeos') | 570 # Same for chromeos. |
| 571 if any(re.search('[/_](aura|chromeos)', f) for f in files): |
| 572 trybots += ['linux_chromeos', 'linux_chromeos_clang:compile'] |
571 | 573 |
572 return trybots | 574 return trybots |
OLD | NEW |