| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2016 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 """This script takes a Clang revision as an argument, it then | 6 """This script takes a Clang revision as an argument, it then |
| 7 creates a feature branch, puts this revision into update.py, uploads | 7 creates a feature branch, puts this revision into update.py, uploads |
| 8 a CL, triggers Clang Upload try bots, and tells what to do next""" | 8 a CL, triggers Clang Upload try bots, and tells what to do next""" |
| 9 | 9 |
| 10 import argparse | 10 import argparse |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 Git(["checkout", "-b", "clang-{}-{}".format( | 64 Git(["checkout", "-b", "clang-{}-{}".format( |
| 65 clang_revision, clang_sub_revision)]) | 65 clang_revision, clang_sub_revision)]) |
| 66 Git(["add", UPDATE_PY_PATH]) | 66 Git(["add", UPDATE_PY_PATH]) |
| 67 | 67 |
| 68 commit_message = 'Ran `{}`.'.format(' '.join(sys.argv)) | 68 commit_message = 'Ran `{}`.'.format(' '.join(sys.argv)) |
| 69 Git(["commit", "-m", "Roll clang {}:{}.\n\n{}".format( | 69 Git(["commit", "-m", "Roll clang {}:{}.\n\n{}".format( |
| 70 clang_old_revision, clang_revision, commit_message)]) | 70 clang_old_revision, clang_revision, commit_message)]) |
| 71 | 71 |
| 72 Git(["cl", "upload"]) | 72 Git(["cl", "upload"]) |
| 73 Git(["cl", "try", "-b", "linux_chromium_clang_upload", "-r", git_revision]) | 73 Git(["cl", "try", "-b", "linux_upload_clang", "-r", git_revision]) |
| 74 Git(["cl", "try", "-b", "mac_chromium_clang_upload", "-r", git_revision]) | 74 Git(["cl", "try", "-b", "mac_upload_clang", "-r", git_revision]) |
| 75 Git(["cl", "try", "-b", "win_chromium_clang_upload", "-r", git_revision]) | 75 Git(["cl", "try", "-b", "win_upload_clang", "-r", git_revision]) |
| 76 | 76 |
| 77 print ("Please, wait until the try bots succeeded " | 77 print ("Please, wait until the try bots succeeded " |
| 78 "and then push the binaries to goma.") | 78 "and then push the binaries to goma.") |
| 79 | 79 |
| 80 if __name__ == '__main__': | 80 if __name__ == '__main__': |
| 81 sys.exit(main()) | 81 sys.exit(main()) |
| OLD | NEW |