зеркало из https://github.com/mozilla/pjs.git
105 строки
2.6 KiB
Python
105 строки
2.6 KiB
Python
#! /usr/bin/python
|
|
|
|
from buildbot import master
|
|
from buildbot.process import factory
|
|
from buildbot.steps.source import CVS, SVN, Darcs, Arch
|
|
from buildbot.steps.shell import Configure, Compile, Test
|
|
from buildbot.status import html, client
|
|
from buildbot.changes.pb import PBChangeSource
|
|
s = factory.s
|
|
|
|
BuildmasterConfig = c = {}
|
|
|
|
c['bots'] = [["bot1", "sekrit"]]
|
|
|
|
c['sources'] = []
|
|
c['sources'].append(PBChangeSource(prefix="trunk"))
|
|
c['builders'] = []
|
|
|
|
if 1:
|
|
steps = [
|
|
s(CVS,
|
|
cvsroot="/usr/home/warner/stuff/Projects/BuildBot/demo/Repository",
|
|
cvsmodule="hello",
|
|
mode="clobber",
|
|
checkoutDelay=6,
|
|
alwaysUseLatest=True,
|
|
),
|
|
s(Configure),
|
|
s(Compile),
|
|
s(Test, command=["make", "check"]),
|
|
]
|
|
b1 = {"name": "cvs-hello",
|
|
"slavename": "bot1",
|
|
"builddir": "cvs-hello",
|
|
"factory": factory.BuildFactory(steps),
|
|
}
|
|
c['builders'].append(b1)
|
|
|
|
if 1:
|
|
svnrep="file:///usr/home/warner/stuff/Projects/BuildBot/demo/SVN-Repository"
|
|
steps = [
|
|
s(SVN,
|
|
svnurl=svnrep+"/hello",
|
|
mode="update",
|
|
),
|
|
s(Configure),
|
|
s(Compile),
|
|
s(Test, command=["make", "check"]),
|
|
]
|
|
b1 = {"name": "svn-hello",
|
|
"slavename": "bot1",
|
|
"builddir": "svn-hello",
|
|
"factory": factory.BuildFactory(steps),
|
|
}
|
|
c['builders'].append(b1)
|
|
|
|
if 1:
|
|
steps = [
|
|
s(Darcs,
|
|
repourl="http://localhost/~warner/hello-darcs",
|
|
mode="copy",
|
|
),
|
|
s(Configure, command=["/bin/sh", "./configure"]),
|
|
s(Compile),
|
|
s(Test, command=["make", "check"]),
|
|
]
|
|
b1 = {"name": "darcs-hello",
|
|
"slavename": "bot1",
|
|
"builddir": "darcs-hello",
|
|
"factory": factory.BuildFactory(steps),
|
|
}
|
|
c['builders'].append(b1)
|
|
|
|
if 1:
|
|
steps = [
|
|
s(Arch,
|
|
url="http://localhost/~warner/hello-arch",
|
|
version="gnu-hello--release--2.1.1",
|
|
mode="copy",
|
|
),
|
|
s(Configure),
|
|
s(Compile),
|
|
s(Test, command=["make", "check"]),
|
|
]
|
|
b1 = {"name": "arch-hello",
|
|
"slavename": "bot1",
|
|
"builddir": "arch-hello",
|
|
"factory": factory.BuildFactory(steps),
|
|
}
|
|
c['builders'].append(b1)
|
|
|
|
|
|
c['projectName'] = "Hello"
|
|
c['projectURL'] = "http://www.hello.example.com"
|
|
c['buildbotURL'] = "http://localhost:8080"
|
|
|
|
c['slavePortnum'] = 8007
|
|
c['debugPassword'] = "asdf"
|
|
c['manhole'] = master.Manhole(9900, "username", "password")
|
|
|
|
c['status'] = [html.Waterfall(http_port=8080),
|
|
client.PBListener(port=8008),
|
|
]
|
|
|