summaryrefslogtreecommitdiff
path: root/buildbot.cfg
blob: 4c1c5aff9966a419fb39baab156eefc3fd763d9f (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
93
94
95
96
97
98
99
#! /usr/bin/python

from buildbot.changes.svnpoller import SVNPoller
from buildbot.steps.source import SVN
from buildbot.process.factory import GNUAutoconf, s
from buildbot.status import html, mail, words
from buildbot import scheduler, locks

# This is a list of everyone who has volunteered to run a Ledger buildbot
slaves = [
    (("johnw-ppc", "XXXXXXXX"), "darwin-ppc"),
    (("johnw-x86", "XXXXXXXX"), "darwin-x86")
]

repository = "https://ledger.svn.sourceforge.net/svnroot/ledger/trunk"

c = {
    'bots':         [item[0] for item in slaves],
    'sources':      [SVNPoller(svnbin="/usr/bin/svn", svnurl=repository)],
    'builders':     [],
    'schedulers':   [],
    'status':       [],
    'slavePortnum': 8007
}


# Define all of the build targets that need testing on each platform

MY_CPPFLAGS = "-I/sw/include -I/opt/include -I/usr/local/include"
MY_LDFLAGS  = "-L/sw/lib -L/opt/lib -L/usr/local/lib"
MY_FLAGS    = "CPPFLAGS=\"%s\" LDFLAGS=\"%s\"" % (MY_CPPFLAGS, MY_LDFLAGS)

svnsource = s(SVN, svnurl=repository, mode="clobber")

builders = []
builders.append({
    'name':   'distcheck',
    'factory': GNUAutoconf(svnsource,
                           configure="chmod -R u+w .; ./acprep --local",
                           compile=None,
                           test=("make %s distcheck" % MY_FLAGS))
})
builders.append({
    'name':   'normal',
    'factory': GNUAutoconf(svnsource,
                           configure="./acprep --local",
                           test="make fullcheck")
})
builders.append({
    'name':   'python',
    'factory': GNUAutoconf(svnsource,
                           configure="./acprep --local --python",
                           test="make fullcheck")
})
builders.append({
    'name':   'debug',
    'factory': GNUAutoconf(svnsource,
                           configure="./acprep --local --debug",
                           test="make fullcheck")
})
builders.append({
    'name':   'debug-python',
    'factory': GNUAutoconf(svnsource,
                           configure="./acprep --local --debug --python",
                           test="make fullcheck")
})


# Add a builder for each build target on every platform

slow_lock = locks.SlaveLock("cpu", maxCount = 1)

for builder in builders:
    for slave, arch in slaves:
        c['builders'].append({
            'name':      arch + '-' + builder['name'],
            'slavename': slave[0],
            'builddir':  arch + '-' + builder['name'],
            'factory':   builder['factory'],
            'locks':     [slow_lock]
        })


c['schedulers'] = [
    scheduler.Scheduler("full", None, 60,
                        [b['name'] for b in c['builders']])
]

c['status'] = [
    html.Waterfall(http_port=9090, allowForce=False),

    mail.MailNotifier(fromaddr="johnw@newartisans.com",
                      extraRecipients=["jwiegley@gmail.com"]),

    words.IRC("irc.freenode.net", "ledgerbot", allowForce=False,
              channels=["#ledger"])
]

BuildmasterConfig = c