Add the android_aosp trybot to PRESUBMIT.py
This adds the android_aosp trybot to the preferred trybot set.
BUG=None
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/18367002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209667 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 564f978..cf74399 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1010,7 +1010,7 @@
if all(re.search('(^|[/_])win[/_.]', f) for f in files):
return ['win_rel', 'win7_aura', 'win:compile']
if all(re.search('(^|[/_])android[/_.]', f) for f in files):
- return ['android_dbg', 'android_clang_dbg']
+ return ['android_aosp', 'android_dbg', 'android_clang_dbg']
if all(re.search('^native_client_sdk', f) for f in files):
return ['linux_nacl_sdk', 'win_nacl_sdk', 'mac_nacl_sdk']
if all(re.search('[/_]ios[/_.]', f) for f in files):
@@ -1039,4 +1039,11 @@
if any(re.search('[/_](aura|chromeos)', f) for f in files):
trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan']
+ # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it
+ # unless they're .gyp(i) files as changes to those files can break the gyp
+ # step on that bot.
+ if (not all(re.search('^chrome', f) for f in files) or
+ any(re.search('\.gypi?$', f) for f in files)):
+ trybots += ['android_aosp']
+
return trybots