| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 if not files: | 503 if not files: |
| 504 return [] | 504 return [] |
| 505 | 505 |
| 506 if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files): | 506 if all(re.search('\.(m|mm)$|[/_]mac[/_.]', f) for f in files): |
| 507 return ['mac_rel'] | 507 return ['mac_rel'] |
| 508 if all(re.search('[/_]win[/_.]', f) for f in files): | 508 if all(re.search('[/_]win[/_.]', f) for f in files): |
| 509 return ['win_rel'] | 509 return ['win_rel'] |
| 510 if all(re.search('[/_]android[/_.]', f) for f in files): | 510 if all(re.search('[/_]android[/_.]', f) for f in files): |
| 511 return ['android'] | 511 return ['android'] |
| 512 | 512 |
| 513 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile'] | 513 trybots = ['win_rel', 'linux_rel', 'mac_rel', 'linux_clang:compile', |
| 514 'android'] |
| 514 # match things like aurax11.cc or aura_oak.cc | 515 # match things like aurax11.cc or aura_oak.cc |
| 515 if any(re.search('[/_]aura', f) for f in files): | 516 if any(re.search('[/_]aura', f) for f in files): |
| 516 trybots.append('linux_chromeos') | 517 trybots.append('linux_chromeos') |
| 517 | 518 |
| 518 if not all(f.startswith('chrome/') for f in files): | |
| 519 trybots.append('android') | |
| 520 | |
| 521 return trybots | 519 return trybots |
| OLD | NEW |