Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/buildbot/docs/examples/hello.cfg
blob: d6642a247a5d592107ef1d3527e95e8fb4a275dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#! /usr/bin/python

from buildbot import master
from buildbot.buildslave import BuildSlave
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

BuildmasterConfig = c = {}

c['slaves'] = [BuildSlave("bot1", "sekrit")]

c['change_source'] = PBChangeSource(prefix="trunk")
c['builders'] = []

if True:
    f = factory.BuildFactory()
    f.addStep(CVS(cvsroot="/usr/home/warner/stuff/Projects/BuildBot/demo/Repository",
                  cvsmodule="hello",
                  mode="clobber",
                  checkoutDelay=6,
                  alwaysUseLatest=True,
                  ))
    f.addStep(Configure())
    f.addStep(Compile())
    f.addStep(Test(command=["make", "check"]))
    b1 = {"name": "cvs-hello",
          "slavename": "bot1",
          "builddir": "cvs-hello",
          "factory": f,
          }
    c['builders'].append(b1)

if True:
    svnrep="file:///usr/home/warner/stuff/Projects/BuildBot/demo/SVN-Repository"
    f = factory.BuildFactory()
    f.addStep(SVN(svnurl=svnrep+"/hello", mode="update"))
    f.addStep(Configure())
    f.addStep(Compile()),
    f.addStep(Test(command=["make", "check"]))
    b1 = {"name": "svn-hello",
          "slavename": "bot1",
          "builddir": "svn-hello",
          "factory": f,
          }
    c['builders'].append(b1)

if True:
    f = factory.BuildFactory()
    f.addStep(Darcs(repourl="http://localhost/~warner/hello-darcs",
                    mode="copy"))
    f.addStep(Configure(command=["/bin/sh", "./configure"]))
    f.addStep(Compile())
    f.addStep(Test(command=["make", "check"]))
    b1 = {"name": "darcs-hello",
          "slavename": "bot1",
          "builddir": "darcs-hello",
          "factory": f,
          }
    c['builders'].append(b1)

if True:
    f = factory.BuildFactory()
    f.addStep(Arch(url="http://localhost/~warner/hello-arch",
                   version="gnu-hello--release--2.1.1",
                   mode="copy",
                   ))
    f.addStep(Configure(command=["/bin/sh", "./configure"]))
    f.addStep(Compile())
    f.addStep(Test(command=["make", "check"]))
    b1 = {"name": "arch-hello",
          "slavename": "bot1",
          "builddir": "arch-hello",
          "factory": f,
          }
    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.WebStatus(http_port=8080),
               client.PBListener(port=8008),
               ]