OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" | 6 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" |
7 | 7 |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import subprocess | 10 import subprocess |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 temp_dir = util.MakeTempDir() | 107 temp_dir = util.MakeTempDir() |
108 zip_path = os.path.join(temp_dir, zip_name) | 108 zip_path = os.path.join(temp_dir, zip_name) |
109 f = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) | 109 f = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) |
110 f.write(server, server_name) | 110 f.write(server, server_name) |
111 f.close() | 111 f.close() |
112 | 112 |
113 cmd = [ | 113 cmd = [ |
114 sys.executable, | 114 sys.executable, |
115 os.path.join(_THIS_DIR, 'third_party', 'googlecode', | 115 os.path.join(_THIS_DIR, 'third_party', 'googlecode', |
116 'googlecode_upload.py'), | 116 'googlecode_upload.py'), |
117 '--summary', 'alpha version of ChromeDriver2 r%s' % revision, | 117 '--summary', 'version of ChromeDriver2 r%s' % revision, |
118 '--project', 'chromedriver', | 118 '--project', 'chromedriver', |
119 '--user', 'chromedriver.bot@gmail.com', | 119 '--user', 'chromedriver.bot@gmail.com', |
120 '--label', 'Release-Alpha', | 120 '--label', 'Release', |
121 zip_path | 121 zip_path |
122 ] | 122 ] |
123 with open(os.devnull, 'wb') as no_output: | 123 with open(os.devnull, 'wb') as no_output: |
124 if subprocess.Popen(cmd, stdout=no_output, stderr=no_output).wait(): | 124 if subprocess.Popen(cmd, stdout=no_output, stderr=no_output).wait(): |
125 print '@@@STEP_FAILURE@@@' | 125 print '@@@STEP_FAILURE@@@' |
126 | 126 |
127 | 127 |
128 def main(): | 128 def main(): |
129 parser = optparse.OptionParser() | 129 parser = optparse.OptionParser() |
130 parser.add_option( | 130 parser.add_option( |
(...skipping 22 matching lines...) Expand all Loading... |
153 cmd.append('--android-package=' + options.android_package) | 153 cmd.append('--android-package=' + options.android_package) |
154 | 154 |
155 passed = (util.RunCommand(cmd) == 0) | 155 passed = (util.RunCommand(cmd) == 0) |
156 | 156 |
157 if not options.android_package and passed: | 157 if not options.android_package and passed: |
158 MaybeRelease(options.revision) | 158 MaybeRelease(options.revision) |
159 | 159 |
160 | 160 |
161 if __name__ == '__main__': | 161 if __name__ == '__main__': |
162 main() | 162 main() |
OLD | NEW |