| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
| 6 | 6 |
| 7 This is based on commands.py and adds chromium-specific commands.""" | 7 This is based on commands.py and adds chromium-specific commands.""" |
| 8 | 8 |
| 9 from buildbot.steps import shell | 9 from buildbot.steps import shell |
| 10 | 10 |
| 11 from master.factory import commands | 11 from master.factory import commands |
| 12 import config | 12 import config |
| 13 | 13 |
| 14 | 14 |
| 15 class V8Commands(commands.FactoryCommands): | 15 class V8Commands(commands.FactoryCommands): |
| 16 """Encapsulates methods to add v8 commands to a buildbot factory.""" | 16 """Encapsulates methods to add v8 commands to a buildbot factory.""" |
| 17 | 17 |
| 18 # pylint: disable=W0212 | |
| 19 # (accessing protected member V8) | |
| 20 PERF_BASE_URL = config.Master.V8.perf_base_url | |
| 21 | |
| 22 def __init__(self, factory=None, target=None, build_dir=None, | 18 def __init__(self, factory=None, target=None, build_dir=None, |
| 23 target_platform=None, target_arch=None, | 19 target_platform=None, target_arch=None, |
| 24 shard_count=1, shard_run=1, shell_flags=None, isolates=False, | 20 shard_count=1, shard_run=1, shell_flags=None, isolates=False, |
| 25 command_prefix=None): | 21 command_prefix=None): |
| 26 | 22 |
| 27 commands.FactoryCommands.__init__(self, factory, target, build_dir, | 23 commands.FactoryCommands.__init__(self, factory, target, build_dir, |
| 28 target_platform, target_arch) | 24 target_platform, target_arch) |
| 29 | 25 |
| 30 # Override _script_dir - one below because we run our build inside | 26 # Override _script_dir - one below because we run our build inside |
| 31 # the bleeding_edge directory. | 27 # the bleeding_edge directory. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 workdir='build/v8') | 151 workdir='build/v8') |
| 156 | 152 |
| 157 def AddMoveExtracted(self): | 153 def AddMoveExtracted(self): |
| 158 """Adds a step to download and extract a previously archived build.""" | 154 """Adds a step to download and extract a previously archived build.""" |
| 159 cmd = ('cp -R sconsbuild/release/* v8/.') | 155 cmd = ('cp -R sconsbuild/release/* v8/.') |
| 160 self._factory.addStep(shell.ShellCommand, | 156 self._factory.addStep(shell.ShellCommand, |
| 161 description='Move extracted to bleeding', | 157 description='Move extracted to bleeding', |
| 162 timeout=600, | 158 timeout=600, |
| 163 workdir='build', | 159 workdir='build', |
| 164 command=cmd) | 160 command=cmd) |
| OLD | NEW |