| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |