返回錯誤「OSError:no這樣的文件或目錄」。我們嘗試使用shellCommand構建器中的步驟激活我們新創建的虛擬env venvCI,例如我們無法激活virtualenv venvCI。在這個環境中只有新的東西,所以請幫助我們。謝謝。(Buildbot)無法使用ShellCommand激活virtualenv
from buildbot.steps.shell import ShellCommand
factory = util.BuildFactory()
# STEPS for example-slave:
factory.addStep(ShellCommand(command=['virtualenv', 'venvCI']))
factory.addStep(ShellCommand(command=['source', 'venvCI/bin/activate']))
factory.addStep(ShellCommand(command=['pip', 'install', '-r','development.pip']))
factory.addStep(ShellCommand(command=['pyflakes', 'calculator.py']))
factory.addStep(ShellCommand(command=['python', 'test.py']))
c['builders'] = []
c['builders'].append(
util.BuilderConfig(name="runtests",
slavenames=["example-slave"],
factory=factory))
@varesa我會嘗試一個,並通知你的結果。謝謝! –
@varesa嘿!謝謝。有效。 –