Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Side by Side Diff: PRESUBMIT.py

Issue 10808022: Add unit_tests bundle as a default compile target for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/all_android.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | build/all_android.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698