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

Side by Side Diff: tools/bots/dartium_android.py

Issue 457373002: Don't upload Android content_shell APK on integration channel. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix string literals Created 6 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """ 6 """
7 Dartium on Android buildbot steps. 7 Dartium on Android buildbot steps.
8 8
9 Runs steps after the buildbot builds Dartium on Android, 9 Runs steps after the buildbot builds Dartium on Android,
10 which should upload the APK to an attached device, and run 10 which should upload the APK to an attached device, and run
(...skipping 21 matching lines...) Expand all
32 help="The directory containing the products of the build.") 32 help="The directory containing the products of the build.")
33 return parser 33 return parser
34 34
35 35
36 def UploadSetACL(gsutil, local, remote): 36 def UploadSetACL(gsutil, local, remote):
37 gsutil.upload(local, remote, public=True) 37 gsutil.upload(local, remote, public=True)
38 38
39 39
40 def UploadAPKs(options): 40 def UploadAPKs(options):
41 with bot.BuildStep('Upload apk'): 41 with bot.BuildStep('Upload apk'):
42 bot_name = os.environ.get("BUILDBOT_BUILDERNAME") 42 bot_name = os.environ.get('BUILDBOT_BUILDERNAME')
43 on_fyi = 'fyi-' in os.environ.get('BUILDBOT_SCHEDULER')
44 if '-integration' in bot_name or on_fyi:
45 return
43 channel = bot_utils.GetChannelFromName(bot_name) 46 channel = bot_utils.GetChannelFromName(bot_name)
44 namer = bot_utils.GCSNamer(channel=channel) 47 namer = bot_utils.GCSNamer(channel=channel)
45 gsutil = bot_utils.GSUtil() 48 gsutil = bot_utils.GSUtil()
46 49
47 web_link_prefix = 'https://storage.cloud.google.com/' 50 web_link_prefix = 'https://storage.cloud.google.com/'
48 51
49 # Archive content shell 52 # Archive content shell
50 local = os.path.join(options.build_products_dir, CS_LOCATION) 53 local = os.path.join(options.build_products_dir, CS_LOCATION)
51 54
52 for revision in [utils.GetSVNRevision(), 'latest']: 55 for revision in [utils.GetSVNRevision(), 'latest']:
(...skipping 24 matching lines...) Expand all
77 if not options.build_products_dir: 80 if not options.build_products_dir:
78 print "No build products directory given." 81 print "No build products directory given."
79 sys.exit(1) 82 sys.exit(1)
80 83
81 UploadAPKs(options) 84 UploadAPKs(options)
82 RunContentShellTests(options) 85 RunContentShellTests(options)
83 sys.exit(0) 86 sys.exit(0)
84 87
85 if __name__ == '__main__': 88 if __name__ == '__main__':
86 main() 89 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698