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

Side by Side Diff: tools/bots/cross-vm.py

Issue 1353373002: Fix obsolete gsutil command in scripts. Delete editor signing script. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comment. Created 5 years, 3 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
« no previous file with comments | « no previous file | tools/dartium/upload_steps.py » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, 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 import os 6 import os
7 import re 7 import re
8 import sys 8 import sys
9 9
10 import bot 10 import bot
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 run([sys.executable, build_py, 44 run([sys.executable, build_py,
45 '-m%s' % mode, '--arch=%s' % arch, 'runtime']) 45 '-m%s' % mode, '--arch=%s' % arch, 'runtime'])
46 46
47 with bot.BuildStep('Create build tarball'): 47 with bot.BuildStep('Create build tarball'):
48 run(['tar', '-cjf', tarball, '--exclude=**/obj', 48 run(['tar', '-cjf', tarball, '--exclude=**/obj',
49 '--exclude=**/obj.host', '--exclude=**/obj.target', 49 '--exclude=**/obj.host', '--exclude=**/obj.target',
50 '--exclude=**/*analyzer*', 'out/', 'tools/testing/bin/']) 50 '--exclude=**/*analyzer*', 'out/', 'tools/testing/bin/'])
51 51
52 with bot.BuildStep('Upload build tarball'): 52 with bot.BuildStep('Upload build tarball'):
53 uri = "%s/%s" % (GCS_BUCKET, tarball) 53 uri = "%s/%s" % (GCS_BUCKET, tarball)
54 run([GSUTIL, 'cp', tarball, uri]) 54 run([GSUTIL, 'cp', '-a', 'public-read', tarball, uri])
55 run([GSUTIL, 'setacl', 'public-read', uri])
56 55
57 elif num_run == 2: 56 elif num_run == 2:
58 with bot.BuildStep('tests'): 57 with bot.BuildStep('tests'):
59 print "Please see the target device for results." 58 print "Please see the target device for results."
60 print "We no longer record/replay tests." 59 print "We no longer record/replay tests."
61 else: 60 else:
62 raise Exception("Invalid annotated steps run") 61 raise Exception("Invalid annotated steps run")
63 finally: 62 finally:
64 for path in temporary_files: 63 for path in temporary_files:
65 if os.path.exists(path): 64 if os.path.exists(path):
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 total_shards = target_vm_pattern_match.group(4) 113 total_shards = target_vm_pattern_match.group(4)
115 target_builder(arch, mode, total_shards, shard_index) 114 target_builder(arch, mode, total_shards, shard_index)
116 else: 115 else:
117 raise Exception("Unknown builder name %s" % name) 116 raise Exception("Unknown builder name %s" % name)
118 117
119 if __name__ == '__main__': 118 if __name__ == '__main__':
120 try: 119 try:
121 sys.exit(main()) 120 sys.exit(main())
122 except OSError as e: 121 except OSError as e:
123 sys.exit(e.errno) 122 sys.exit(e.errno)
OLDNEW
« no previous file with comments | « no previous file | tools/dartium/upload_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698