-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmaster.cfg
660 lines (501 loc) · 29 KB
/
master.cfg
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
# -*- python -*-
# ex: set syntax=python:
# load the special AFS buildslaves to handle password management
from afsbotcfg import slave
reload(slave)
from afsbotcfg.slave import OpenAFSBuildSlave
# This is a sample buildmaster config file. It must be installed as
# 'master.cfg' in your buildmaster's base directory (although the filename
# can be changed with the --basedir option to 'mktap buildbot master').
# It has one job: define a dictionary named BuildmasterConfig. This
# dictionary has a variety of keys to control different aspects of the
# buildmaster. They are documented in docs/config.xhtml .
# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}
####### BUILDSLAVES
# the 'slaves' list defines the set of allowable buildslaves. Each element is
# a BuildSlave object, which is created with bot-name, bot-password. These
# correspond to values given to the buildslave's mktap invocation.
from buildbot.buildslave import BuildSlave
c['slaves'] = [OpenAFSBuildSlave("debian-i386", max_builds=2)]
c['slaves'].append(OpenAFSBuildSlave("win2008-amd64", max_builds=4))
c['slaves'].append(OpenAFSBuildSlave("sgi_irix_65-64bit", max_builds=2, notify_on_missing="clc31@inbox.com"))
c['slaves'].append(OpenAFSBuildSlave("power_aix", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("power_aix-2", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("rhel5-x86_64", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("rhel6-x86_64", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("fedora19-x86_64", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("macos-10-8-x86_64", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("debian_arm", max_builds=2, notify_on_missing="christof.hanke@rzg.mpg.de"))
c['slaves'].append(OpenAFSBuildSlave("opensuse11-x86_64", max_builds=2, notify_on_missing="christof.hanke@rzg.mpg.de"))
c['slaves'].append(OpenAFSBuildSlave("opensuse11-i386", max_builds=2, notify_on_missing="christof.hanke@rzg.mpg.de"))
c['slaves'].append(OpenAFSBuildSlave("opensuse12-x86_64", max_builds=2, notify_on_missing="christof.hanke@rzg.mpg.de"))
c['slaves'].append(OpenAFSBuildSlave("opensuse12-i386", max_builds=2, notify_on_missing="christof.hanke@rzg.mpg.de"))
c['slaves'].append(OpenAFSBuildSlave("freebsd8-amd64", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("freebsd91-amd64-heimdalstock", max_builds=2))
c['slaves'].append(OpenAFSBuildSlave("hp_ux11iv1", max_builds=1))
# solaris 10
c['slaves'].append(OpenAFSBuildSlave("sun510_x86", max_builds=2))
# solaris 11
c['slaves'].append(OpenAFSBuildSlave("sun511_x86", max_builds=2))
# 'slavePortnum' defines the TCP port to listen on. This must match the value
# configured into the buildslaves (with their --master option)
c['slavePortnum'] = 9989
####### CHANGESOURCES
# the 'change_source' setting tells the buildmaster how it should find out
# about source code changes. Any class which implements IChangeSource can be
# put here: there are several in buildbot/changes/*.py to choose from.
#from buildbot.changes.pb import PBChangeSource
#c['change_source'] = PBChangeSource()
import sys
sys.path.append('/home/buildmaster/buildbot-src/contrib')
from gerrit import GerritChangeSource
#c['change_source'] = GerritChangeSource()
####### SCHEDULERS
## configure the Schedulers
from buildbot.scheduler import Scheduler, Periodic, Nightly
mybuilders = []
mybuilders.append("debian-linux-i386-builder")
mybuilders.append("win2008-amd64-checked-builder")
mybuilders.append("win2008-amd64-free-builder")
mybuilders.append("win2008-x86-checked-builder")
mybuilders.append("win2008-x86-free-builder")
mybuilders.append("aix-builder")
mybuilders.append("opensuse12-i386-builder")
mybuilders.append("opensuse12-x86_64-builder")
mybuilders.append("freebsd91-amd64-builder")
mybuilders.append("solaris10_x86-builder")
mybuilders.append("solaris11_x86-builder")
mybuilders.append("fedora19-x86_64-builder")
devel17_builders = []
devel17_builders.append("win2008-amd64-checked-builder")
devel17_builders.append("win2008-amd64-free-builder")
devel17_builders.append("win2008-x86-checked-builder")
devel17_builders.append("win2008-x86-free-builder")
gerrit16_builders = []
gerrit16_builders.append("debian-linux-i386-builder")
gerrit16_builders.append("aix-builder")
gerrit16_builders.append("opensuse12-i386-builder")
gerrit16_builders.append("opensuse12-x86_64-builder")
gerrit16_builders.append("freebsd91-amd64-builder")
gerrit16_builders.append("solaris10_x86-builder")
gerrit16_builders.append("solaris11_x86-builder")
gerrit16_builders.append("fedora19-x86_64-builder")
# gerrit builders for the 1.4 branch
gerrit14_builders = []
gerrit14_builders.append("hp_ux11iv1-inode-builder")
gerrit14_builders.append("hp_ux11iv1-namei-builder")
gerrit14_builders.append("irix-builder")
gerrit14_builders.append("debian-linux-i386-builder")
gerrit14_builders.append("rhel5-x86_64-builder")
gerrit14_builders.append("rhel6-x86_64-builder")
# builders for 1.6 branches twice per day
semidaily_builders = []
semidaily_builders.append("hp_ux11iv1-inode-builder")
semidaily_builders.append("hp_ux11iv1-namei-builder")
semidaily_builders.append("irix-builder")
# builders for the master daily builds
semidaily_master_builders = []
semidaily_master_builders.append("debian-arm-builder")
semidaily_master_builders.append("macos-x86_64-builder")
semidaily_master_builders.append("rhel5-x86_64-builder")
semidaily_master_builders.append("rhel6-x86_64-builder")
semidaily_master_builders.append("hp_ux11iv1-inode-builder")
semidaily_master_builders.append("hp_ux11iv1-namei-builder")
semidaily_master_builders.append("freebsd8-amd64-builder")
semidaily_master_builders.append("opensuse11-i386-builder")
semidaily_master_builders.append("opensuse11-x86_64-builder")
c['schedulers'] = []
c['schedulers'].append(Scheduler(name="all", branch=None,
treeStableTimer=30,
builderNames=mybuilders))
#c['schedulers'].append(Periodic("every_4_hours", ["irix-builder"], 4*60*60))
c['schedulers'].append(Nightly(name='Daily', builderNames=semidaily_master_builders, hour=[0,12], minute=0 ))
# 1.4 and 1.6 nightly schedulers
c['schedulers'].append(Nightly(name='Daily-1.6', builderNames=semidaily_builders, hour=[2,14], minute=0, branch="openafs-stable-1_6_x" ))
from gerrit import GerritScheduler
c['schedulers'].append(GerritScheduler("gerrit_scheduler", mybuilders, projects="openafs", branches=["master"]))
c['schedulers'].append(GerritScheduler("gerrit_16_scheduler", gerrit16_builders, projects="openafs", branches=["openafs-stable-1_6_x"]))
c['schedulers'].append(GerritScheduler("gerrit_17_scheduler", devel17_builders, branches=["openafs-devel-1_7_x"]))
c['schedulers'].append(GerritScheduler("gerrit_14_scheduler", gerrit14_builders, branches=["openafs-stable-1_4_x"]))
#c['schedulers'].append(Scheduler(name="all", branch=None,
# treeStableTimer=2*60,
# builderNames=["debian-linux-i386-builder"]))
####### BUILDERS
# the 'builders' list defines the Builders. Each one is configured with a
# dictionary, using the following keys:
# name (required): the name used to describe this builder
# slavename (required): which slave to use (must appear in c['bots'])
# builddir (required): which subdirectory to run the builder in
# factory (required): a BuildFactory to define how the build is run
# periodicBuildTime (optional): if set, force a build every N seconds
# buildbot/process/factory.py provides several BuildFactory classes you can
# start with, which implement build processes for common targets (GNU
# autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
# base class, and is configured with a series of BuildSteps. When the build
# is run, the appropriate buildslave is told to execute each Step in turn.
# the first BuildStep is typically responsible for obtaining a copy of the
# sources. There are source-obtaining Steps in buildbot/steps/source.py for
# CVS, SVN, and others.
repourl="git://git.openafs.org/openafs.git"
from buildbot.process import factory
from buildbot.steps.source import Git
from buildbot.steps.shell import Compile
from buildbot.steps.shell import Configure
from buildbot.steps.shell import ShellCommand
linuxfactory = factory.BuildFactory()
linuxfactory.addStep(ShellCommand(command=["sleep","120"]))
linuxfactory.addStep(ShellCommand(command=["git","clean","-d","-x","-f","-e",".buildbot-sourcedata"]))
linuxfactory.addStep(ShellCommand(command=["git","clean","-d","-X","-f","-e","!.buildbot-sourcedata"]))
linuxfactory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
linuxfactory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
linuxfactory.addStep(ShellCommand(command=["sh","regen.sh"],timeout=3600))
linuxfactory.addStep(Configure(command=["./configure","--enable-checking","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik"]))
linuxfactory.addStep(Compile(command=["make"]))
linuxfactory.addStep(Compile(command=["make","dest"]))
b1 = {'name': "debian-linux-i386-builder",
'slavename': "debian-i386",
'builddir': "full",
'factory': linuxfactory,
}
c['builders'] = [b1]
irix_configure_env={'CC':"cc"}
irixfactory = factory.BuildFactory()
irixfactory.addStep(ShellCommand(command=["sleep","120"]))
irixfactory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
irixfactory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
irixfactory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
irixfactory.addStep(ShellCommand(command=["sh","regen.sh"]))
irixfactory.addStep(Configure(command=["./configure","--enable-checking","--enable-supergroups","--enable-namei-fileserver","--with-krb5=/usr/nekoware","--enable-pthreaded-ubik"],env=irix_configure_env))
irixfactory.addStep(Compile(command=["gmake"], warningPattern=".*cc:? WARNING"))
irixfactory.addStep(Compile(command=["make","dest"], warningPattern=".*cc:? WARNING"))
irixbuilder = {'name': "irix-builder",
'slavenames': ["sgi_irix_65-64bit"],
'builddir': "irix-65-64bit",
'factory': irixfactory,
}
c['builders'].append(irixbuilder)
###### win_amd64 free builder
win_amd64_free_factory = factory.BuildFactory()
# wait for 2 minutes for gerrit changes settle
win_amd64_free_factory.addStep(ShellCommand(command=["ping","-n","120","localhost"]))
win_amd64_free_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
win_amd64_free_factory.addStep(Compile(command=["build-openafs.cmd", "amd64", "free"]))
win_amd64_free_builder = {'name': "win2008-amd64-free-builder",
'slavename': "win2008-amd64",
'builddir': "win-amd64-free",
'factory': win_amd64_free_factory,
}
c['builders'].append(win_amd64_free_builder)
###### win_amd64 checked builder
win_amd64_checked_factory = factory.BuildFactory()
# wait for 2 minutes for gerrit changes settle
win_amd64_checked_factory.addStep(ShellCommand(command=["ping","-n","120","localhost"]))
win_amd64_checked_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
win_amd64_checked_factory.addStep(Compile(command=["build-openafs.cmd", "amd64", "checked"]))
win_amd64_checked_builder = {'name': "win2008-amd64-checked-builder",
'slavename': "win2008-amd64",
'builddir': "win-amd64-checked",
'factory': win_amd64_checked_factory,
}
c['builders'].append(win_amd64_checked_builder)
###### win_x86 free builder
win_x86_free_factory = factory.BuildFactory()
# wait for 2 minutes for gerrit changes settle
win_x86_free_factory.addStep(ShellCommand(command=["ping","-n","120","localhost"]))
win_x86_free_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
win_x86_free_factory.addStep(Compile(command=["build-openafs.cmd", "x86", "free"]))
win_x86_free_builder = {'name': "win2008-x86-free-builder",
'slavename': "win2008-amd64",
'builddir': "win-x86-free",
'factory': win_x86_free_factory,
}
c['builders'].append(win_x86_free_builder)
###### win_x86 checked builder
win_x86_checked_factory = factory.BuildFactory()
# wait for 2 minutes for gerrit changes settle
win_x86_checked_factory.addStep(ShellCommand(command=["ping","-n","120","localhost"]))
win_x86_checked_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,60],timeout=3600))
win_x86_checked_factory.addStep(Compile(command=["build-openafs.cmd", "x86", "checked"]))
win_x86_checked_builder = {'name': "win2008-x86-checked-builder",
'slavename': "win2008-amd64",
'builddir': "win-x86-checked",
'factory': win_x86_checked_factory,
}
c['builders'].append(win_x86_checked_builder)
######### aix builder
aix_configure_env={'CC':"xlc"}
aixfactory = factory.BuildFactory()
aixfactory.addStep(ShellCommand(command=["sleep","120"]))
aixfactory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
aixfactory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
aixfactory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
aixfactory.addStep(ShellCommand(command=["sh","regen.sh"]))
aixfactory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--with-krb5=/usr/krb5","--enable-pthreaded-ubik"],env=aix_configure_env))
aixfactory.addStep(Compile(command=["make"], warningPattern=".*\([WE]\).*"))
aixfactory.addStep(Compile(command=["make","dest"], warningPattern=".*\([WE]\).*"))
aixbuilder = {'name': "aix-builder",
'slavenames': ["power_aix","power_aix-2"],
'builddir': "power-aix",
'factory': aixfactory,
}
c['builders'].append(aixbuilder)
######### rhel5 builder
rhel5factory = factory.BuildFactory()
rhel5factory.addStep(ShellCommand(command=["sleep","120"]))
rhel5factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
rhel5factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
rhel5factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
rhel5factory.addStep(ShellCommand(command=["sh","regen.sh"]))
rhel5factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik"]))
rhel5factory.addStep(Compile(command=["make","-j4"]))
rhel5factory.addStep(Compile(command=["make","-j4","dest"]))
rhel5_x86_builder = {'name': "rhel5-x86_64-builder",
'slavename': "rhel5-x86_64",
'builddir': "rhel5-x86_64-builder",
'factory': rhel5factory,
}
c['builders'].append(rhel5_x86_builder)
######### rhel6 builder
rhel6factory = factory.BuildFactory()
rhel6factory.addStep(ShellCommand(command=["sleep","120"]))
rhel6factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
rhel6factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
rhel6factory.addStep(ShellCommand(command=["git","clean","-x","-f","-d"]))
rhel6factory.addStep(ShellCommand(command=["sh","regen.sh"]))
rhel6factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik"]))
rhel6factory.addStep(Compile(command=["make","-j4"]))
rhel6factory.addStep(Compile(command=["make","-j4","dest"]))
rhel6_x86_builder = {'name': "rhel6-x86_64-builder",
'slavename': "rhel6-x86_64",
'builddir': "rhel6-x86_64-builder",
'factory': rhel6factory,
}
c['builders'].append(rhel6_x86_builder)
######### fedora19 builder
fedora19factory = factory.BuildFactory()
fedora19factory.addStep(ShellCommand(command=["sleep","120"]))
fedora19factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
fedora19factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
fedora19factory.addStep(ShellCommand(command=["git","clean","-x","-f","-d"]))
fedora19factory.addStep(ShellCommand(command=["sh","regen.sh"]))
fedora19factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik"]))
fedora19factory.addStep(Compile(command=["make","-j4"]))
fedora19factory.addStep(Compile(command=["make","-j4","dest"]))
fedora19_x86_builder = {'name': "fedora19-x86_64-builder",
'slavename': "fedora19-x86_64",
'builddir': "fedora19-x86_64-builder",
'factory': fedora19factory,
}
c['builders'].append(fedora19_x86_builder)
######### opensuse builder
susefactory86 = factory.BuildFactory()
susefactory86.addStep(ShellCommand(command=["sleep","120"]))
susefactory86.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
susefactory86.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
susefactory86.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
susefactory86.addStep(ShellCommand(command=["sh","regen.sh"],timeout=3600))
susefactory86.addStep(Configure(command=["./configure","--enable-checking","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik","--with-linux-kernel-build=/usr/src/linux-obj/i586/default"]))
susefactory86.addStep(Compile(command=["make","-j4"]))
susefactory86.addStep(Compile(command=["make","-j4","dest"]))
opensuse11_x86_builder = {'name': "opensuse11-i386-builder",
'slavename': "opensuse11-i386",
'builddir': "opensuse11-i386-builder",
'factory': susefactory86,
}
c['builders'].append(opensuse11_x86_builder)
susefactory64 = factory.BuildFactory()
susefactory64.addStep(ShellCommand(command=["sleep","120"]))
susefactory64.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
susefactory64.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
susefactory64.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
susefactory64.addStep(ShellCommand(command=["sh","regen.sh"],timeout=3600))
susefactory64.addStep(Configure(command=["./configure","--enable-checking","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik","--with-linux-kernel-build=/usr/src/linux-obj/x86_64/default"]))
susefactory64.addStep(Compile(command=["make","-j4"]))
susefactory64.addStep(Compile(command=["make","-j4","dest"]))
opensuse11_64bit_builder = {'name': "opensuse11-x86_64-builder",
'slavename': "opensuse11-x86_64",
'builddir': "opensuse11-x86_64-builder",
'factory': susefactory64,
}
c['builders'].append(opensuse11_64bit_builder)
######### opensuse12 builder
opensuse12_x86_builder = {'name': "opensuse12-i386-builder",
'slavename': "opensuse12-i386",
'builddir': "opensuse12-i386-builder",
'factory': susefactory86,
}
c['builders'].append(opensuse12_x86_builder)
opensuse12_64bit_builder = {'name': "opensuse12-x86_64-builder",
'slavename': "opensuse12-x86_64",
'builddir': "opensuse12-x86_64-builder",
'factory': susefactory64,
}
c['builders'].append(opensuse12_64bit_builder)
######### mac builders
macintel_env={'ARCHFLAGS':"-arch i386 -arch x86_64"}
macintelfactory = factory.BuildFactory()
macintelfactory.addStep(ShellCommand(command=["sleep","120"]))
macintelfactory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
macintelfactory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
macintelfactory.addStep(ShellCommand(command=["/usr/local/git/bin/git","clean","-X","-f","-d","-e","!.buildbot-sourcedata"]))
macintelfactory.addStep(ShellCommand(command=["sh","regen.sh"],timeout=3600))
macintelfactory.addStep(Configure(command=["./configure","--enable-transarc-paths","--enable-pthreaded-ubik","--enable-warnings","--enable-checking","--disable-pam"], env=macintel_env))
macintelfactory.addStep(Compile(command=["make","dest"],env=macintel_env))
macintel_builder = {'name': "macos-x86_64-builder",
'slavename': "macos-10-8-x86_64",
'builddir': "macos-x86_64-builder",
'factory': macintelfactory,
}
c['builders'].append(macintel_builder)
######### linux arm builder
debian_arm_builder = {'name': "debian-arm-builder",
'slavename': "debian_arm",
'builddir': "debian-arm",
'factory': linuxfactory,
}
c['builders'].append(debian_arm_builder)
######### freebsd builders
freebsd81factory = factory.BuildFactory()
freebsd81factory.addStep(ShellCommand(command=["sleep","120"]))
freebsd81factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
freebsd81factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
freebsd81factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
freebsd81factory.addStep(ShellCommand(command=["sh","regen.sh"]))
freebsd81factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--enable-pthreaded-ubik","--with-bsd-kernel-build=/usr/obj/usr/src/sys/GENERIC"]))
freebsd81factory.addStep(Compile(command=["make"]))
freebsd81factory.addStep(Compile(command=["make", "dest"]))
freebsd8_amd64_builder = {'name': "freebsd8-amd64-builder",
'slavename': "freebsd8-amd64",
'builddir': "freebsd8-amd64",
'factory': freebsd81factory,
}
c['builders'].append(freebsd8_amd64_builder)
freebsd91factory = factory.BuildFactory()
freebsd91factory.addStep(ShellCommand(command=["sleep","120"]))
freebsd91factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
freebsd91factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
freebsd91factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
freebsd91factory.addStep(ShellCommand(command=["sh","regen.sh"]))
freebsd91factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-warnings","--enable-namei-fileserver","--with-bsd-kernel-headers=/usr/src/sys","--with-bsd-kernel-build=/usr/obj/usr/src/sys/GENERIC"]))
freebsd91factory.addStep(Compile(command=["make"]))
freebsd91factory.addStep(Compile(command=["make", "dest"]))
freebsd91_amd64_heimdal_builder = {'name': "freebsd91-amd64-builder",
'slavename': "freebsd91-amd64-heimdalstock",
'builddir': "freebsd91-amd64-heimdalstock",
'factory': freebsd91factory,
}
c['builders'].append(freebsd91_amd64_heimdal_builder)
######### hp_ux11iv1 inode builder
hp_ux11_inode_factory = factory.BuildFactory()
hp_ux11_inode_factory.addStep(ShellCommand(command=["sleep","120"]))
hp_ux11_inode_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
hp_ux11_inode_factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
hp_ux11_inode_factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
hp_ux11_inode_factory.addStep(ShellCommand(command=["sh","regen.sh"]))
hp_ux11_inode_factory.addStep(Configure(command=["./configure","--enable-supergroups","--disable-namei-fileserver","--enable-pthreaded-ubik","--enable-transarc-paths"]))
hp_ux11_inode_factory.addStep(Compile(command=["make"]))
hp_ux11_inode_factory.addStep(Compile(command=["make", "dest"]))
hp_ux11_inode_builder = {'name': "hp_ux11iv1-inode-builder",
'slavename': "hp_ux11iv1",
'builddir': "hp_ux11iv1-inode",
'factory': hp_ux11_inode_factory,
}
c['builders'].append(hp_ux11_inode_builder)
######### hp_ux11iv1 namei builder
hp_ux11_namei_factory = factory.BuildFactory()
hp_ux11_namei_factory.addStep(ShellCommand(command=["sleep","120"]))
hp_ux11_namei_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
hp_ux11_namei_factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
hp_ux11_namei_factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
hp_ux11_namei_factory.addStep(ShellCommand(command=["sh","regen.sh"]))
hp_ux11_namei_factory.addStep(Configure(command=["./configure","--enable-supergroups","--enable-namei-fileserver","--enable-transarc-paths","--enable-pthreaded-ubik"]))
hp_ux11_namei_factory.addStep(Compile(command=["make"]))
hp_ux11_namei_factory.addStep(Compile(command=["make", "dest"]))
hp_ux11_namei_builder = {'name': "hp_ux11iv1-namei-builder",
'slavename': "hp_ux11iv1",
'builddir': "hp_ux11iv1-namei",
'factory': hp_ux11_namei_factory,
}
c['builders'].append(hp_ux11_namei_builder)
######### solaris 10 x86 builder
solaris10_x86_factory = factory.BuildFactory()
solaris10_x86_factory.addStep(ShellCommand(command=["sleep","120"]))
solaris10_x86_factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
solaris10_x86_factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
solaris10_x86_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
solaris10_x86_factory.addStep(ShellCommand(command=["sh","regen.sh"]))
solaris10_x86_factory.addStep(Configure(command=["./configure","--enable-debug","--disable-optimize","--enable-debug-kernel","--disable-optimize-kernel","--enable-transarc-paths","--enable-namei-fileserver",]))
solaris10_x86_factory.addStep(Compile(command=["make"]))
solaris10_x86_factory.addStep(Compile(command=["make", "dest"]))
solaris10_x86_builder = {'name': "solaris10_x86-builder",
'slavename': "sun510_x86",
'builddir': "sun510_x86",
'factory': solaris10_x86_factory,
}
c['builders'].append(solaris10_x86_builder)
######### solaris 11 x86 builder
solaris11_x86_factory = factory.BuildFactory()
solaris11_x86_factory.addStep(ShellCommand(command=["sleep","120"]))
solaris11_x86_factory.addStep(ShellCommand(command=["git","gc","--auto"],timeout=3600))
solaris11_x86_factory.addStep(ShellCommand(command=["git","clean","-X","-f","-e","!.buildbot-sourcedata"]))
solaris11_x86_factory.addStep(Git(repourl=repourl, mode="update", ignore_ignores=True, retry=[60,3],timeout=3600))
solaris11_x86_factory.addStep(ShellCommand(command=["sh","regen.sh"]))
solaris11_x86_factory.addStep(Configure(command=["./configure","--enable-debug","--disable-optimize","--enable-debug-kernel","--disable-optimize-kernel","--enable-transarc-paths","--enable-namei-fileserver",]))
solaris11_x86_factory.addStep(Compile(command=["make"]))
solaris11_x86_factory.addStep(Compile(command=["make", "dest"]))
solaris11_x86_builder = {'name': "solaris11_x86-builder",
'slavename': "sun511_x86",
'builddir': "sun511_x86",
'factory': solaris11_x86_factory,
}
c['builders'].append(solaris11_x86_builder)
####### STATUS TARGETS
# 'status' is a list of Status Targets. The results of each build will be
# pushed to these targets. buildbot/status/*.py has a variety to choose from,
# including web pages, email senders, and IRC bots.
c['status'] = []
# Use allowForce=True (boolean, not a string. ie: not 'True') to allow
# Forcing Builds in the Web User Interface. The default is False.
from buildbot.status import html
c['status'].append(html.WebStatus(http_port=8010,allowForce=True))
from gerrit import GerritStatusPush
c['status'].append(GerritStatusPush('gerrit-prod'))
#from buildbot.status import html
#c['status'].append(html.WebStatus(http_port=8010))
#
# from buildbot.status import words
# c['status'].append(words.IRC(host="irc.example.com", nick="bb",
# channels=["#example"]))
#
from buildbot.status import client
c['status'].append(client.PBListener(9988))
####### DEBUGGING OPTIONS
# if you set 'debugPassword', then you can connect to the buildmaster with
# the diagnostic tool in contrib/debugclient.py . From this tool, you can
# manually force builds and inject changes, which may be useful for testing
# your buildmaster without actually committing changes to your repository (or
# before you have a functioning 'sources' set up). The debug tool uses the
# same port number as the slaves do: 'slavePortnum'.
#c['debugPassword'] = "debugpassword"
# if you set 'manhole', you can ssh into the buildmaster and get an
# interactive python shell, which may be useful for debugging buildbot
# internals. It is probably only useful for buildbot developers. You can also
# use an authorized_keys file, or plain telnet.
#from buildbot import manhole
#c['manhole'] = manhole.PasswordManhole("tcp:9999:interface=127.0.0.1",
# "admin", "password")
####### PROJECT IDENTITY
# the 'projectName' string will be used to describe the project that this
# buildbot is working on. For example, it is used as the title of the
# waterfall HTML page. The 'projectURL' string will be used to provide a link
# from buildbot HTML pages to your project's home page.
c['projectName'] = "OpenAFS"
c['projectURL'] = "http://www.openafs.org/"
# the 'buildbotURL' string should point to the location where the buildbot's
# internal web server (usually the html.Waterfall page) is visible. This
# typically uses the port number set in the Waterfall 'status' entry, but
# with an externally-visible host name which the buildbot cannot figure out
# without some help.
c['buildbotURL'] = "http://buildbot.openafs.org:8010/"