OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 def _upload(args): | 112 def _upload(args): |
113 if args.debug: | 113 if args.debug: |
114 print "Only upload release binaries (for now)" | 114 print "Only upload release binaries (for now)" |
115 return 1 | 115 return 1 |
116 base_command = ['tools/upload_service.py', | 116 base_command = ['tools/upload_service.py', |
117 '--linux-x64-binary-dir', _linux_out_dir(args), | 117 '--linux-x64-binary-dir', _linux_out_dir(args), |
118 '--android-arm-binary-dir', _android_out_dir(args)] | 118 '--android-arm-binary-dir', _android_out_dir(args)] |
119 if args.dry_run: | 119 if args.dry_run: |
120 base_command.append('--dry-run') | 120 base_command.append('--dry-run') |
121 _logger.info('Uploading network service binary') | 121 _logger.info('Uploading network service binary') |
122 retcode = subprocess.call(base_command + ['network_service']) | 122 retcode = subprocess.call(base_command + ['--upload-symbols', |
| 123 'network_service']) |
123 if retcode != 0: | 124 if retcode != 0: |
124 return retcode | 125 return retcode |
125 _logger.info('Uploading network service apptests binary') | 126 _logger.info('Uploading network service apptests binary') |
126 return subprocess.call(base_command + ['network_service_apptests']) | 127 return subprocess.call(base_command + ['network_service_apptests']) |
127 | 128 |
128 | 129 |
129 def main(): | 130 def main(): |
130 parser = argparse.ArgumentParser( | 131 parser = argparse.ArgumentParser( |
131 description='Script to help build and upload monet') | 132 description='Script to help build and upload monet') |
132 | 133 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 help='Dry run (prints what it would upload but does not actually upload)', | 172 help='Dry run (prints what it would upload but does not actually upload)', |
172 action='store_true') | 173 action='store_true') |
173 upload_parser.set_defaults(func=_upload) | 174 upload_parser.set_defaults(func=_upload) |
174 | 175 |
175 args = parser.parse_args() | 176 args = parser.parse_args() |
176 _init_logging(args.verbose_count) | 177 _init_logging(args.verbose_count) |
177 return args.func(args) | 178 return args.func(args) |
178 | 179 |
179 if __name__ == '__main__': | 180 if __name__ == '__main__': |
180 sys.exit(main()) | 181 sys.exit(main()) |
OLD | NEW |