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
|
import copy
from buildbot.buildslave import BuildSlave
from buildbot.scheduler import Nightly
from buildbot.process import factory
from buildbot.steps.shell import Compile, ShellCommand
from buildbot.steps import source
from buildbot.status import html
# ------------------------------------------------------------------------------------------------------------------------------------------------
def bbot_build_oe_target(factory, target):
factory.addStep(ShellCommand, description=["Building", defaultenv['MACHINE'], target], command=["/home/buildbot/scripts/full-oe-autobuild", target], env=copy.copy(defaultenv), timeout=10000)
def bbot_initialize_factory(factory, clean_tmp=False, repository="git://git.openembedded.net/openembedded", branch="stable/2009"):
factory.addStep(source.Git(repourl=repository, branch=branch, mode='update'))
if clean_tmp:
factory.addStep(ShellCommand, description=["Cleaning", "tmp"], command="/bin/rm tmp || /bin/true", timeout=600)
else:
factory.addStep(ShellCommand, description=["Cleaning", "previous", "targets"], command="/bin/rm tmp/deploy/*/images/*/*rootfs* || /bin/true", timeout=600)
factory.addStep(ShellCommand, description=["Cleaning", "previous", "targets", "step 2"], command="/bin/rm -rf tmp/deploy/*/images/*/*testlab* || /bin/true", timeout=600)
# ------------------------------------------------------------------------------------------------------------------------------------------------
defaultenv = {}
machines_glibc = ['at91sam9263ek', 'beagleboard', 'qemux86', 'vortex86sx', 'bug']
machines_uclibc = ['at91sam9263ek', 'beagleboard', 'qemux86', 'atngw100', 'bug']
targets_glibc = ['console-image', 'x11-image']
targets_uclibc = ['console-image', 'x11-image']
angstrom_glibc_incremental_build = factory.BuildFactory()
bbot_initialize_factory(angstrom_glibc_incremental_build)
defaultenv['ANGSTROMLIBC'] = 'glibc'
for machine in machines_glibc:
defaultenv['MACHINE'] = machine
for target in targets_glibc:
bbot_build_oe_target(angstrom_glibc_incremental_build, target)
angstrom_glibc_full_build = factory.BuildFactory()
bbot_initialize_factory(angstrom_glibc_full_build, True)
defaultenv['ANGSTROMLIBC'] = 'glibc'
for machine in machines_glibc:
defaultenv['MACHINE'] = machine
for target in targets_glibc:
bbot_build_oe_target(angstrom_glibc_full_build, target)
angstrom_uclibc_incremental_build = factory.BuildFactory()
bbot_initialize_factory(angstrom_uclibc_incremental_build)
defaultenv['ANGSTROMLIBC'] = 'uclibc'
for machine in machines_uclibc:
defaultenv['MACHINE'] = machine
for target in targets_uclibc:
bbot_build_oe_target(angstrom_uclibc_incremental_build, target)
angstrom_uclibc_full_build = factory.BuildFactory()
bbot_initialize_factory(angstrom_uclibc_full_build, True)
defaultenv['ANGSTROMLIBC'] = 'uclibc'
for machine in machines_uclibc:
defaultenv['MACHINE'] = machine
for target in targets_uclibc:
bbot_build_oe_target(angstrom_uclibc_full_build, target)
# ------------------------------------------------------------------------------------------------------------------------------------------------
config = BuildmasterConfig = {}
config['projectName'] = "HaeRWu buildbot"
config['buildbotURL'] = "http://localhost:8010/"
config['slaves'] = [BuildSlave("homeQuad", "BOT-PASSWORD")]
Config['slavePortnum'] = 9989
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"]))
#---------------------------------------------------------------------
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'] = ""
config['status'].append(html.WebStatus(http_port=8010, allowForce=True))
config['status'].append(html.WebStatus(http_port=8011, allowForce=False))
|