Moving and updating the svn copy of the buildbot master config
- Legacy-Id: 216
This commit is contained in:
parent
9bced60e2f
commit
4cfe601ed7
|
@ -93,25 +93,14 @@ from buildbot.process import factory
|
||||||
from buildbot.steps.source import SVN
|
from buildbot.steps.source import SVN
|
||||||
from buildbot.steps.dummy import Dummy
|
from buildbot.steps.dummy import Dummy
|
||||||
from buildbot.steps.python import PyFlakes
|
from buildbot.steps.python import PyFlakes
|
||||||
from buildbot.steps.shell import ShellCommand as BaseShellCommand
|
from buildbot.steps.shell import ShellCommand, Test
|
||||||
from buildbot.status.builder import SUCCESS, WARNINGS, FAILURE
|
|
||||||
|
|
||||||
class ShellCommand(BaseShellCommand):
|
|
||||||
def evaluateCommand(self, cmd):
|
|
||||||
if cmd.rc == 0:
|
|
||||||
return SUCCESS
|
|
||||||
if cmd.rc == 1:
|
|
||||||
return WARNINGS
|
|
||||||
else:
|
|
||||||
return FAILURE
|
|
||||||
|
|
||||||
f1 = factory.BuildFactory()
|
f1 = factory.BuildFactory()
|
||||||
f1.addStep(SVN, svnurl="http://svn.tools.ietf.org/svn/tools/ietfdb/trunk/", username="buildbot@tools.ietf.org", password="U64#GUxr")
|
f1.addStep(SVN, svnurl="http://svn.tools.ietf.org/svn/tools/ietfdb/trunk/", username="buildbot@tools.ietf.org", password="U64#GUxr")
|
||||||
f1.addStep(ShellCommand, command=["test/test-setup"])
|
f1.addStep(ShellCommand, name="test-setup", command=["test/test-setup"])
|
||||||
f1.addStep(PyFlakes, command=["pyflakes", "ietf"], warnOnFailure=True)
|
f1.addStep(PyFlakes, command=["pyflakes", "ietf"], warnOnFailure=True)
|
||||||
f1.addStep(ShellCommand, command=["python", "ietf/manage.py", "test"], env={'PYTHONPATH': ["test/lib",]} )
|
f1.addStep(Test, name="django-tests", command=["python", "ietf/manage.py", "test"], env={'PYTHONPATH': ["test/lib",]} )
|
||||||
f1.addStep(ShellCommand, command=["test/test-teardown"])
|
f1.addStep(ShellCommand, name="test-teardown", command=["test/test-teardown"])
|
||||||
f1.addStep(Dummy, timeout=10)
|
|
||||||
|
|
||||||
b1 = {'name': "merlot-builder-1",
|
b1 = {'name': "merlot-builder-1",
|
||||||
'slavename': "merlot",
|
'slavename': "merlot",
|
Loading…
Reference in a new issue