OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project 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 json | 7 import json |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 import urllib | 10 import urllib |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 def RunStep(self): | 58 def RunStep(self): |
59 if self._options.roll: | 59 if self._options.roll: |
60 args = [ | 60 args = [ |
61 "--author", self._options.author, | 61 "--author", self._options.author, |
62 "--reviewer", self._options.reviewer, | 62 "--reviewer", self._options.reviewer, |
63 "--chromium", self._options.chromium, | 63 "--chromium", self._options.chromium, |
64 "--last-roll", self["last_roll"], | 64 "--last-roll", self["last_roll"], |
65 "--use-commit-queue", | 65 "--use-commit-queue", |
66 self["roll"], | 66 self["roll"], |
67 ] | 67 ] |
68 if self._options.sheriff: | |
69 args.append("--sheriff") | |
70 if self._options.dry_run: | 68 if self._options.dry_run: |
71 args.append("--dry-run") | 69 args.append("--dry-run") |
72 if self._options.work_dir: | 70 if self._options.work_dir: |
73 args.extend(["--work-dir", self._options.work_dir]) | 71 args.extend(["--work-dir", self._options.work_dir]) |
74 if self._options.chromium_roll_json_output: | 72 if self._options.chromium_roll_json_output: |
75 args.extend(["--json-output", self._options.chromium_roll_json_output]) | 73 args.extend(["--json-output", self._options.chromium_roll_json_output]) |
76 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) | 74 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) |
77 | 75 |
78 | 76 |
79 class AutoRoll(ScriptsBase): | 77 class AutoRoll(ScriptsBase): |
(...skipping 24 matching lines...) Expand all Loading... |
104 | 102 |
105 def _Steps(self): | 103 def _Steps(self): |
106 return [ | 104 return [ |
107 DetectLastRoll, | 105 DetectLastRoll, |
108 RollChromium, | 106 RollChromium, |
109 ] | 107 ] |
110 | 108 |
111 | 109 |
112 if __name__ == "__main__": # pragma: no cover | 110 if __name__ == "__main__": # pragma: no cover |
113 sys.exit(AutoRoll().Run()) | 111 sys.exit(AutoRoll().Run()) |
OLD | NEW |