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
|
def runOEImage(factory, machine, image, libc):
defaultenv['ANGSTROMLIBC'] = libc
factory.addStep(ShellCommand, description=["Building", machine, image], command=["/home/buildbot/scripts/full-oe-autobuild", image, machine], env=copy.copy(defaultenv), timeout=10000)
import copy
builders = []
defaultenv = {}
config = BuildmasterConfig = {}
config['projectName'] = "HaeRWu buildbot"
config['buildbotURL'] = "http://localhost:8010/"
from buildbot.buildslave import BuildSlave
from buildbot.changes.pb import PBChangeSource
from buildbot.scheduler import Scheduler
from buildbot.scheduler import Periodic
from buildbot.scheduler import Nightly
from buildbot.process import factory
from buildbot.process import buildstep as step
from buildbot.steps.source import SVN
from buildbot.steps.python_twisted import Trial
from buildbot.steps.shell import Compile, ShellCommand
from buildbot.steps import source, shell
config['slaves'] = [BuildSlave("homeQuad", "BOT-PASSWORD")]
config['slavePortnum'] = 9989
config['change_source'] = PBChangeSource()
config['schedulers'] = []
config['schedulers'].append(Nightly(name="Angstrom glibc full build",
hour=23, minute=0, dayOfWeek=[0,2,4],
builderNames=["angstrom_glibc_full_build"]))
config['schedulers'].append(Nightly(name="Angstrom glibc incremental build",
hour=5, minute=0, dayOfWeek=[0,2,4],
builderNames=["angstrom_glibc_incremental_build"]))
config['schedulers'].append(Nightly(name="Angstrom uclibc full build",
hour=23, minute=0, dayOfWeek=[1,3,5],
builderNames=["angstrom_uclibc_full_build"]))
config['schedulers'].append(Nightly(name="Angstrom uclibc incremental build",
hour=5, minute=0, dayOfWeek=[1,3,5],
builderNames=["angstrom_uclibc_incremental_build"]))
angstrom_glibc_incremental_build = factory.BuildFactory()
angstrom_glibc_incremental_build.addStep(source.Git(repourl="git://git.openembedded.net/openembedded", branch='stable/2009', mode='update'))
angstrom_glibc_incremental_build.addStep(ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm tmp/deploy/images/*/*/*rootfs* || /bin/true", timeout=600)
angstrom_glibc_incremental_build.addStep(ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm -rf tmp/deploy/images/*/*/*testlab* || /bin/true", timeout=600)
runOEImage(angstrom_glibc_incremental_build, 'at91sam9263ek', 'base-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'at91sam9263ek', 'console-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'at91sam9263ek', 'x11-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'beagleboard', 'base-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'beagleboard', 'console-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'beagleboard', 'x11-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'qemux86', 'base-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'qemux86', 'console-image', 'glibc')
runOEImage(angstrom_glibc_incremental_build, 'qemux86', 'x11-image', 'glibc')
angstrom_glibc_full_build = factory.BuildFactory()
angstrom_glibc_full_build.addStep(source.Git(repourl="git://git.openembedded.net/openembedded", branch='stable/2009', mode='update'))
angstrom_glibc_full_build.addStep(ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm tmp/deploy/images/*/*/*rootfs* || /bin/true", timeout=600)
angstrom_glibc_full_build.addStep(ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm -rf tmp/deploy/images/*/*/*testlab* || /bin/true", timeout=600)
runOEImage(angstrom_glibc_full_build, 'at91sam9263ek', 'base-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'at91sam9263ek', 'console-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'at91sam9263ek', 'x11-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'beagleboard', 'base-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'beagleboard', 'console-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'beagleboard', 'x11-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'qemux86', 'base-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'qemux86', 'console-image', 'glibc')
runOEImage(angstrom_glibc_full_build, 'qemux86', 'x11-image', 'glibc')
angstrom_uclibc_incremental_build = factory.BuildFactory()
angstrom_uclibc_incremental_build.addStep(source.Git(repourl="git://git.openembedded.net/openembedded", branch='stable/2009', mode='update'))
angstrom_uclibc_incremental_build.addStep(ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm tmp/deploy/images/*/*/*rootfs* || /bin/true", timeout=600)
angstrom_uclibc_incremental_build.addStep(ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm -rf tmp/deploy/images/*/*/*testlab* || /bin/true", timeout=600)
runOEImage(angstrom_uclibc_incremental_build, 'atngw100', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'atngw100', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'atngw100', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'at91sam9263ek', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'at91sam9263ek', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'at91sam9263ek', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'beagleboard', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'beagleboard', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'beagleboard', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'qemux86', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'qemux86', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_incremental_build, 'qemux86', 'x11-image', 'uclibc')
angstrom_uclibc_full_build = factory.BuildFactory()
angstrom_uclibc_full_build.addStep(source.Git(repourl="git://git.openembedded.net/openembedded", branch='stable/2009', mode='update'))
angstrom_uclibc_full_build.addStep(ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm tmp/deploy/images/*/*/*rootfs* || /bin/true", timeout=600)
angstrom_uclibc_full_build.addStep(ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm -rf tmp/deploy/images/*/*/*testlab* || /bin/true", timeout=600)
runOEImage(angstrom_uclibc_full_build, 'atngw100', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'atngw100', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'atngw100', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'at91sam9263ek', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'at91sam9263ek', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'at91sam9263ek', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'beagleboard', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'beagleboard', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'beagleboard', 'x11-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'qemux86', 'base-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'qemux86', 'console-image', 'uclibc')
runOEImage(angstrom_uclibc_full_build, 'qemux86', 'x11-image', 'uclibc')
#---------------------------------------------------------------------
build_agf = {
'name': "angstrom_glibc_full_build",
'slavename': "homeQuad",
'builddir': "angstrom_glibc_full_build",
'factory': angstrom_glibc_full_build,
}
build_agi = {
'name': "angstrom_glibc_incremental_build",
'slavename': "homeQuad",
'builddir': "angstrom_glibc_incremental_build",
'factory': angstrom_glibc_incremental_build,
}
build_auf = {
'name': "angstrom_uclibc_full_build",
'slavename': "homeQuad",
'builddir': "angstrom_uclibc_full_build",
'factory': angstrom_uclibc_full_build,
}
build_aui = {
'name': "angstrom_uclibc_incremental_build",
'slavename': "homeQuad",
'builddir': "angstrom_uclibc_incremental_build",
'factory': angstrom_uclibc_incremental_build,
}
config['builders'] = [build_agf, build_agi, build_auf, build_aui ]
config['status'] = []
config['debugPassword'] = ""
from buildbot.status import html
config['status'].append(html.Waterfall(http_port=8010))
config['status'].append(html.Waterfall(http_port=8011, allowForce=False))
|