Mercurial > octave-buildbot
annotate master.cfg @ 8:e02079ee69d1
master.cfg: add info about config file
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Feb 2019 15:58:06 +0000 |
parents | c8ce098ecc08 |
children | 2d30e2976bbe |
rev | line source |
---|---|
0 | 1 ## -*- python -*- |
2 ## ex: set syntax=python: | |
3 | |
4 ## This is a sample buildmaster config file. It must be installed as | |
5 ## 'master.cfg' in your buildmaster's base directory. | |
6 | |
7 ## This is the dictionary that the buildmaster pays attention to. We | |
8 ## also use a shorter alias to save typing. | |
9 | |
10 c = BuildmasterConfig = {} | |
11 | |
12 ## WORKERS | |
13 | |
14 ## The 'worker' list defines the set of recognized workers. Each | |
15 ## element is a Worker object, specifying a unique worker name and | |
16 ## password. The same worker name and password must be configured on | |
17 ## the worker. | |
18 | |
19 from buildbot.worker import Worker | |
20 | |
8
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
21 ## The octave_buildbot_config file imported below is not in hg archive because |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
22 ## it contains password and system configuration info. |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
23 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
24 ## This file defines two variables, workers and master_id_and_pass, with |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
25 ## the following format: |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
26 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
27 ## workers = {"worker-name-0": |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
28 ## {"pass": "worker-0-password", |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
29 ## "max_builds": 3, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
30 ## "desc": "info about worker-0"}, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
31 ## "worker-name-1": |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
32 ## {"pass": "worker-1-password", |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
33 ## "max_builds": 3, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
34 ## "desc": "info about worker-1"}, |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
35 ## ...} |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
36 ## |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
37 ## master_id_and_pass = {"master-login-id" : "master-password"} |
e02079ee69d1
master.cfg: add info about config file
John W. Eaton <jwe@octave.org>
parents:
6
diff
changeset
|
38 |
0 | 39 import octave_buildbot_config |
40 | |
41 c["workers"] = [] | |
42 | |
43 for worker, info in octave_buildbot_config.workers.iteritems (): | |
44 c["workers"].append (Worker (worker, info["pass"], max_builds = info["max_builds"])) | |
45 | |
46 ## 'protocols' contains information about protocols which master will | |
47 ## use for communicating with workers. You must define at least 'port' | |
48 ## option that workers could connect to your master with this protocol. | |
49 ## 'port' must match the value configured into the workers (with | |
50 ## their --master option) | |
51 | |
52 c["protocols"] = { "pb" : { "port" : 9990 }} | |
53 | |
54 ## SOURCES | |
55 | |
56 ## The main mercurial repository server. This machines pings the | |
57 ## PBChangeSource. The workers should pull from it, to make | |
58 ## sure they are in sync. | |
59 | |
60 octave_hg_repo = "https://hg.savannah.gnu.org/hgweb/octave" | |
61 ## NOTE: We need this second URL for the Octave sources because | |
62 ## of a bug in buildbot that won't allow two hg poller instances | |
63 ## for the same URL. If that were possible, then we could have | |
64 ## one URL for both the stable and default branches. | |
65 stable_octave_hg_repo = "http://hg.octave.org/octave" | |
66 mxe_octave_hg_repo = "http://hg.octave.org/mxe-octave" | |
67 | |
68 ## CHANGESOURCES | |
69 | |
70 ## the 'change_source' setting tells the buildmaster how it should | |
71 ## find out about source code changes. Here we point to the buildbot | |
72 ## clone of Octave. | |
73 | |
74 from buildbot.changes.hgpoller import HgPoller | |
75 | |
76 c["change_source"] = [] | |
77 | |
78 c["change_source"].append (HgPoller (project = "octave", | |
79 repourl = octave_hg_repo, | |
80 workdir = "octave-hg-repo", | |
81 pollinterval = 5*60)) | |
82 | |
83 c["change_source"].append (HgPoller (project = "stable octave", | |
84 branch = "stable", | |
85 repourl = stable_octave_hg_repo, | |
86 workdir = "stable-octave-hg-repo", | |
87 pollinterval = 5*60)) | |
88 | |
89 c["change_source"].append (HgPoller (project = "mxe-octave", | |
90 repourl = mxe_octave_hg_repo, | |
91 workdir = "mxe-octave-hg-repo", | |
92 pollinterval = 15*60)) | |
93 | |
94 ## FILTERS | |
95 | |
96 from buildbot.changes import filter | |
97 | |
98 octave_default_filter = filter.ChangeFilter (project = "octave", branch = "default") | |
99 | |
100 octave_stable_filter = filter.ChangeFilter (project = "stable octave", branch = "stable") | |
101 | |
102 mxe_octave_default_filter = filter.ChangeFilter (project = "mxe-octave", branch = "default") | |
103 | |
104 ## SCHEDULERS | |
105 | |
106 ## Configure the Schedulers, which decide how to react to incoming | |
107 ## changes. | |
108 | |
109 from buildbot.schedulers.basic import SingleBranchScheduler | |
110 from buildbot.schedulers.forcesched import ForceScheduler | |
111 from buildbot.schedulers import timed | |
112 | |
113 all_default_octave_builders = []; | |
114 #all_default_octave_builders.append ("gcc-4.9-debian") | |
115 #all_default_octave_builders.append ("gcc-5-debian") | |
116 all_default_octave_builders.append ("gcc-6-debian") # mtmx | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
117 all_default_octave_builders.append ("gcc-7-debian") # jwe 1 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
118 all_default_octave_builders.append ("gcc-7-lto-debian") # jwe 2 |
0 | 119 all_default_octave_builders.append ("gcc-fedora") # das |
120 all_default_octave_builders.append ("gcc-lto-fedora") # das | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
121 all_default_octave_builders.append ("no-extras-debian") # jwe 1 |
0 | 122 all_default_octave_builders.append ("clang-3.9-debian") # mtmx |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
123 all_default_octave_builders.append ("clang-4.0-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
124 all_default_octave_builders.append ("clang-5.0-debian") # jwe 3 |
0 | 125 all_default_octave_builders.append ("clang-fedora") # das |
126 all_default_octave_builders.append ("clang-osx") # simone | |
127 | |
128 all_stable_octave_builders = []; | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
129 all_stable_octave_builders.append ("stable-gcc-7-debian") # jwe 1 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
130 all_stable_octave_builders.append ("stable-gcc-7-lto-debian") # jwe 2 |
0 | 131 all_stable_octave_builders.append ("stable-gcc-fedora") # das |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
132 all_stable_octave_builders.append ("stable-no-extras-debian") # jwe 1 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
133 all_stable_octave_builders.append ("stable-clang-4.0-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
134 all_stable_octave_builders.append ("stable-clang-5.0-debian") # jwe 3 |
0 | 135 all_stable_octave_builders.append ("stable-clang-osx") # simone |
136 | |
137 all_mxe_octave_builders = []; | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
138 all_mxe_octave_builders.append ("w32-on-debian") # jwe 3 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
139 all_mxe_octave_builders.append ("w64-32-on-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
140 all_mxe_octave_builders.append ("w64-64-on-debian") # jwe 2 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
141 all_mxe_octave_builders.append ("w32-release-on-debian") # jwe 3 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
142 all_mxe_octave_builders.append ("w64-32-release-on-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
143 all_mxe_octave_builders.append ("w64-64-release-on-debian") # jwe 2 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
144 all_mxe_octave_builders.append ("w32-stable-on-debian") # jwe 3 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
145 all_mxe_octave_builders.append ("w64-32-stable-on-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
146 all_mxe_octave_builders.append ("w64-64-stable-on-debian") # jwe 2 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
147 all_mxe_octave_builders.append ("mxe-native-on-debian") # jwe 0 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
148 all_mxe_octave_builders.append ("mxe-native-all-on-debian") # jwe 2 |
0 | 149 |
150 c["schedulers"] = [] | |
151 | |
152 c["schedulers"].append (SingleBranchScheduler (name = "default octave", | |
153 change_filter = octave_default_filter, | |
154 treeStableTimer = 5*60, | |
155 builderNames = all_default_octave_builders)) | |
156 | |
157 c["schedulers"].append (ForceScheduler (name = "force_default_octave", builderNames = all_default_octave_builders)) | |
158 | |
159 c["schedulers"].append (SingleBranchScheduler (name = "stable octave", | |
160 change_filter = octave_stable_filter, | |
161 treeStableTimer = 5*60, | |
162 builderNames = all_stable_octave_builders)) | |
163 | |
164 c["schedulers"].append (ForceScheduler (name = "force_stable_octave", builderNames = all_stable_octave_builders)) | |
165 | |
166 ## Here, branch is the mxe-octave branch. | |
167 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32", | |
168 branch = "default", | |
169 change_filter = mxe_octave_default_filter, | |
170 builderNames = ["w32-on-debian"], | |
171 hour = 0)) | |
172 | |
173 ## Here, branch is the mxe-octave branch. | |
174 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32", | |
175 branch = "default", | |
176 change_filter = mxe_octave_default_filter, | |
177 builderNames = ["w64-32-on-debian"], | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
178 hour = 0)) |
0 | 179 |
180 ## Here, branch is the mxe-octave branch. | |
181 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64", | |
182 branch = "default", | |
183 change_filter = mxe_octave_default_filter, | |
184 builderNames = ["w64-64-on-debian"], | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
185 hour = 0)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
186 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
187 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
188 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
189 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
190 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
191 builderNames = ["w32-release-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
192 hour = 8)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
193 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
194 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
195 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
196 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
197 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
198 builderNames = ["w64-32-release-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
199 hour = 6)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
200 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
201 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
202 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-release", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
203 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
204 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
205 builderNames = ["w64-64-release-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
206 hour = 6)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
207 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
208 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
209 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
210 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
211 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
212 builderNames = ["w32-stable-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
213 hour = 16)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
214 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
215 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
216 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
217 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
218 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
219 builderNames = ["w64-32-stable-on-debian"], |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
220 hour = 12)) |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
221 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
222 ## Here, branch is the mxe-octave branch. |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
223 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-stable", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
224 branch = "default", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
225 change_filter = mxe_octave_default_filter, |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
226 builderNames = ["w64-64-stable-on-debian"], |
0 | 227 hour = 12)) |
228 | |
229 ## Here, branch is the mxe-octave branch. | |
230 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native", | |
231 branch = "default", | |
232 change_filter = mxe_octave_default_filter, | |
233 builderNames = ["mxe-native-on-debian"], | |
234 hour = 18)) | |
235 | |
236 ## Here, branch is the mxe-octave branch. | |
237 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native-all", | |
238 branch = "default", | |
239 change_filter = mxe_octave_default_filter, | |
240 builderNames = ["mxe-native-all-on-debian"], | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
241 hour = 18)) |
0 | 242 |
243 c["schedulers"].append (ForceScheduler (name = "force_mxe_octave", builderNames = all_mxe_octave_builders)) | |
244 | |
245 ## BUILDERS | |
246 | |
247 ## The 'builders' list defines the Builders, which tell Buildbot how | |
248 ## to perform a build: what steps, and which workers can execute them. | |
249 ## Note that any particular build will only take place on one worker. | |
250 | |
251 from buildbot.process.factory import BuildFactory | |
252 from buildbot.steps.source.mercurial import Mercurial | |
253 from buildbot.steps.shell import ShellCommand | |
254 from buildbot.steps.shell import Configure | |
255 from buildbot.steps.shell import Compile | |
256 from buildbot.steps.shell import Test | |
257 | |
258 ## Steps we may use in more than one build factory. | |
259 | |
260 def build_cmd_list (cmd, nice = 0, opts = []): | |
261 cmd_list = [] | |
262 | |
263 if nice != 0: | |
264 cmd_list.extend (["nice", "-n", str (nice)]) | |
265 | |
266 if isinstance (cmd, list): | |
267 cmd_list.extend (cmd) | |
268 else: | |
269 cmd_list.append (cmd) | |
270 | |
271 if isinstance (opts, list): | |
272 cmd_list.extend (opts) | |
273 else: | |
274 cmd_list.append (opts) | |
275 | |
276 return cmd_list | |
277 | |
278 | |
279 build_env = { "PATH" : "${HOME}/bin:${PATH}" }; | |
280 | |
281 def mk_octave_hg_update_step (repo, branch): | |
282 return Mercurial (repourl = repo, | |
283 defaultBranch = branch, branchType = "inrepo", | |
284 workdir = "src", mode = "full", method = "fresh", | |
285 haltOnFailure = True) | |
286 | |
287 def mk_octave_bootstrap_step (nice = 0): | |
288 boot_cmd = build_cmd_list ("./bootstrap", nice = nice) | |
289 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
290 description = "bootstrap") | |
291 | |
292 sh_rm_build_dir = ShellCommand (command = ["rm", "-rf", "build"], workdir = ".", | |
293 env = build_env, description = "clean build dir") | |
294 | |
295 sh_mk_build_dir = ShellCommand (command = ["mkdir", "build"], | |
296 description = "create build dir") | |
297 | |
298 def mk_octave_configure_step (nice = 0, opts = []): | |
299 conf_cmd = build_cmd_list ("../src/configure", nice = nice, opts = opts) | |
300 return Configure (command = conf_cmd, workdir = "build", env = build_env) | |
301 | |
302 | |
303 def mk_octave_compile_step (nice = 0, opts = []): | |
304 make_cmd = build_cmd_list (["make", "V=1"], nice = nice, opts = opts) | |
305 return Compile (command = make_cmd, workdir = "build", env = build_env, | |
306 warningPattern = ":[0-9][0-9]*:[0-9][0-9]*:warning: ") | |
307 | |
308 import re | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
309 from buildbot.process import logobserver |
0 | 310 from buildbot.process.results import SUCCESS |
311 from buildbot.process.results import FAILURE | |
312 from buildbot.process.results import WARNINGS | |
313 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
314 class octave_test_observer (logobserver.LogLineObserver): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
315 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
316 def __init__ (self, warningPattern): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
317 logobserver.LogLineObserver.__init__ (self) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
318 if warningPattern: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
319 self.warningPattern = re.compile (warningPattern) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
320 else: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
321 self.warningPattern = None |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
322 self.rc = SUCCESS |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
323 self.total = 0 |
2 | 324 self.passed = 0 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
325 self.failed = 0 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
326 self.warnings = 0 |
2 | 327 self.summary_found = False |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
328 self.complete = False |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
329 |
2 | 330 summaryRe = re.compile (r"^Summary: *$") |
331 testsRe = re.compile (r"^ *(PASS|FAIL|REGRESSION|XFAIL|SKIP)[^\d]*(\d+)") | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
332 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
333 def outLineReceived (self, line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
334 if self.warningPattern.match (line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
335 self.warnings += 1 |
2 | 336 |
337 if not self.summary_found: | |
338 mo = self.summaryRe.search (line) | |
339 if mo: | |
340 self.summary_found = True | |
341 return | |
342 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
343 mo = self.testsRe.search (line) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
344 if mo: |
2 | 345 typ = mo.group(1) |
346 num = int (mo.group(2)) | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
347 self.total += num |
2 | 348 if typ == "PASS": |
349 self.passed += num | |
350 if typ == "FAIL" or typ == "REGRESSION": | |
351 if num > 0: | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
352 self.rc = FAILURE |
2 | 353 self.failed += num |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
354 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
355 |
0 | 356 class octave_test (Test): |
357 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
358 def __init__ (self, *args, **kwargs): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
359 Test.__init__ (self, *args, **kwargs) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
360 self.observer = octave_test_observer (warningPattern = self.warningPattern) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
361 self.addLogObserver ('stdio', self.observer) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
362 |
0 | 363 def evaluateCommand (self, cmd): |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
364 if self.observer.total: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
365 passed = self.observer.total - self.observer.failed |
0 | 366 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
367 self.setTestResults (total = self.observer.total, |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
368 failed = self.observer.failed, |
2 | 369 passed = self.observer.passed, |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
370 warnings = self.observer.warnings) |
0 | 371 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
372 rc = self.observer.rc |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
373 if rc == SUCCESS and self.observer.warnings: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
374 rc = WARNINGS |
0 | 375 return rc |
376 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
377 |
0 | 378 def mk_octave_test_step (nice = 0, xvfb = True): |
379 if xvfb: | |
380 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"] | |
381 else: | |
382 cmd = [] | |
383 cmd.extend (["make", "V=1", "check"]) | |
384 test_cmd = build_cmd_list (cmd, nice = nice) | |
385 return octave_test (command = test_cmd, workdir = "build", env = build_env) | |
386 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
387 |
0 | 388 def mk_octave_factory (nice, configure_opts, compile_opts, branch, xvfb = True): |
389 factory = BuildFactory () | |
390 | |
391 factory.addStep (mk_octave_hg_update_step (octave_hg_repo, branch)) | |
392 factory.addStep (mk_octave_bootstrap_step (nice = nice)) | |
393 factory.addStep (sh_rm_build_dir) | |
394 factory.addStep (sh_mk_build_dir) | |
395 factory.addStep (mk_octave_configure_step (nice = nice, opts = configure_opts)) | |
396 factory.addStep (mk_octave_compile_step (nice = nice, opts = compile_opts)) | |
397 factory.addStep (mk_octave_test_step (nice = nice, xvfb = xvfb)) | |
398 | |
399 return factory | |
400 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
401 |
0 | 402 def mk_gcc_factory (nice, compile_opts, branch): |
403 return mk_octave_factory (nice, [], compile_opts, branch) | |
404 | |
405 | |
406 def mk_gcc_4_9_factory (nice, compile_opts, branch): | |
407 return mk_octave_factory (nice, | |
408 ["CC=gcc-4.9", "CXX=g++-4.9", "F77=gfortran-4.9", "--without-magick"], | |
409 compile_opts, branch) | |
410 | |
411 | |
412 ## Default build. | |
413 def mk_gcc_5_factory (nice, compile_opts, branch): | |
414 return mk_octave_factory (nice, | |
415 ["CC=gcc-5", "CXX=g++-5", "F77=gfortran-5"], | |
416 compile_opts, branch) | |
417 | |
418 | |
419 def mk_gcc_6_factory (nice, compile_opts, branch): | |
420 return mk_octave_factory (nice, | |
421 ["CC=gcc-6", "CXX=g++-6", "F77=gfortran-6"], | |
422 compile_opts, branch) | |
423 | |
424 | |
425 def mk_gcc_7_factory (nice, compile_opts, branch): | |
426 return mk_octave_factory (nice, | |
427 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7"], | |
428 compile_opts, branch) | |
429 | |
430 | |
431 def mk_gcc_7_lto_factory (nice, compile_opts, branch): | |
432 return mk_octave_factory (nice, | |
433 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7", | |
434 "CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
435 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
436 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
437 "LDFLAGS=-flto=4", | |
438 "NM=gcc-nm-7", "AR=gcc-ar-7", "RANLIB=gcc-ranlib-7"], | |
439 compile_opts, branch) | |
440 | |
441 | |
442 def mk_gcc_lto_factory (nice, compile_opts, branch): | |
443 return mk_octave_factory (nice, | |
444 ["CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
445 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
446 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
447 "LDFLAGS=-flto=4", | |
448 "NM=gcc-nm", "AR=gcc-ar", "RANLIB=gcc-ranlib"], | |
449 compile_opts, branch) | |
450 | |
451 | |
452 no_extras = ["--disable-docs", | |
453 "--disable-fftw-threads", | |
454 "--disable-java", | |
455 "--disable-jit", | |
456 "--disable-openmp", | |
457 "--disable-readline", | |
458 "--without-osmesa", | |
459 "--without-amd", | |
460 "--without-arpack", | |
461 "--without-bz2", | |
462 "--without-camd", | |
463 "--without-ccolamd", | |
464 "--without-cholmod", | |
465 "--without-colamd", | |
466 "--without-curl", | |
467 "--without-cxsparse", | |
468 "--without-fftw3", | |
469 "--without-fftw3f", | |
470 "--without-fltk", | |
471 "--without-framework-opengl", | |
472 "--without-glpk", | |
473 "--without-hdf5", | |
474 "--without-klu", | |
475 "--without-sundials-ida", | |
476 "--without-sundials_nvecserial", | |
477 "--without-magick", | |
478 "--without-opengl", | |
479 "--without-openssl", | |
480 "--without-portaudio", | |
481 "--without-qhull", | |
482 "--without-qrupdate", | |
483 "--without-qscintilla", | |
484 "--without-qt", | |
485 "--without-sndfile", | |
486 "--without-sundials_ida", | |
487 "--without-sundials_nvecserial", | |
488 "--without-umfpack", | |
489 "--without-x", | |
490 "--without-z"] | |
491 | |
492 def mk_no_extras_factory (nice, compile_opts, branch): | |
493 return mk_octave_factory (nice, no_extras, compile_opts, branch) | |
494 | |
495 | |
496 def mk_clang_3_8_factory (nice, compile_opts, branch): | |
497 return mk_octave_factory (nice, | |
498 ["CC=clang-3.8", "CXX=clang++-3.8"], | |
499 compile_opts, branch) | |
500 | |
501 | |
502 def mk_clang_3_9_factory (nice, compile_opts, branch): | |
503 return mk_octave_factory (nice, | |
504 ["CC=clang-3.9", "CXX=clang++-3.9"], | |
505 compile_opts, branch) | |
506 | |
507 def mk_clang_4_0_factory (nice, compile_opts, branch): | |
508 return mk_octave_factory (nice, | |
509 ["CC=clang-4.0", "CXX=clang++-4.0"], | |
510 compile_opts, branch) | |
511 | |
512 def mk_clang_5_0_factory (nice, compile_opts, branch): | |
513 return mk_octave_factory (nice, | |
514 ["CC=clang-5.0", "CXX=clang++-5.0"], | |
515 compile_opts, branch) | |
516 | |
517 def mk_clang_factory (nice, compile_opts, branch): | |
518 return mk_octave_factory (nice, | |
519 ["CC=clang", "CXX=clang++"], | |
520 compile_opts, branch) | |
521 | |
522 def mk_clang_osx_factory (nice, compile_opts, branch): | |
523 ## The linker does search /usr/local/lib, but it does so after | |
524 ## searching /usr/lib. That selects a readline library that is not | |
525 ## fully compatible with GNU readline. | |
526 return mk_octave_factory (nice, | |
527 ["CC=clang", | |
528 "CXX=clang++", | |
529 "CPPFLAGS=-I/opt/X11/include -I/usr/local/opt/gettext/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/usr/local/opt/sqlite/include", | |
530 "LDFLAGS=-L/usr/local/lib -L/opt/X11/lib -L/usr/local/opt/qt/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/texinfo/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/openblas/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib", | |
531 "PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig", | |
532 "--enable-link-all-dependencies", | |
533 "--with-x=no", | |
534 "--without-osmesa", | |
535 "--with-blas=openblas"], | |
536 compile_opts, branch, xvfb = False) | |
537 | |
538 from buildbot.config import BuilderConfig | |
539 | |
540 c["builders"] = [] | |
541 | |
542 #c["builders"].append (BuilderConfig (name = "gcc-4.9-debian", | |
543 # workernames = ["jwe-debian-x86_64-0"], | |
544 # factory = mk_gcc_4_9_factory (19, "-j8", "default"))) | |
545 | |
546 #c["builders"].append (BuilderConfig (name = "gcc-5-debian", | |
547 # workernames = ["jwe-debian-x86_64-0"], | |
548 # factory = mk_gcc_5_factory (19, "-j8", "default"))) | |
549 | |
550 c["builders"].append (BuilderConfig (name = "gcc-6-debian", | |
551 workernames = ["mtmx-debian-x86_64"], | |
552 factory = mk_gcc_6_factory (10, "-j2", "default"))) | |
553 | |
554 c["builders"].append (BuilderConfig (name = "gcc-7-debian", | |
555 workernames = ["jwe-debian-x86_64-1"], | |
556 factory = mk_gcc_7_factory (19, "-j8", "default"))) | |
557 | |
558 c["builders"].append (BuilderConfig (name = "stable-gcc-7-debian", | |
559 workernames = ["jwe-debian-x86_64-1"], | |
560 factory = mk_gcc_7_factory (19, "-j8", "stable"))) | |
561 | |
562 c["builders"].append (BuilderConfig (name = "gcc-7-lto-debian", | |
563 workernames = ["jwe-debian-x86_64-2"], | |
564 factory = mk_gcc_7_lto_factory (19, "-j8", "default"))) | |
565 | |
566 c["builders"].append (BuilderConfig (name = "stable-gcc-7-lto-debian", | |
567 workernames = ["jwe-debian-x86_64-2"], | |
568 factory = mk_gcc_7_lto_factory (19, "-j8", "stable"))) | |
569 | |
570 c["builders"].append (BuilderConfig (name = "gcc-fedora", | |
571 workernames = ["das_fc25-x86_64"], | |
572 factory = mk_gcc_factory (0, "-j8", "default"))) | |
573 | |
574 c["builders"].append (BuilderConfig (name = "stable-gcc-fedora", | |
575 workernames = ["das_fc25-x86_64"], | |
576 factory = mk_gcc_factory (0, "-j8", "stable"))) | |
577 | |
578 c["builders"].append (BuilderConfig (name = "gcc-lto-fedora", | |
579 workernames = ["das_fc25-x86_64"], | |
580 factory = mk_gcc_lto_factory (10, "-j8", "default"))) | |
581 | |
582 c["builders"].append (BuilderConfig (name = "no-extras-debian", | |
583 workernames = ["jwe-debian-x86_64-1"], | |
584 factory = mk_no_extras_factory (19, "-j8", "default"))) | |
585 | |
586 c["builders"].append (BuilderConfig (name = "stable-no-extras-debian", | |
587 workernames = ["jwe-debian-x86_64-1"], | |
588 factory = mk_no_extras_factory (19, "-j8", "stable"))) | |
589 | |
590 ##c["builders"].append (BuilderConfig (name = "clang-3.8-debian", | |
591 ## workernames = ["jwe-debian-x86_64-2"], | |
592 ## factory = mk_clang_3_8_factory (19, "-j8", "default"))) | |
593 | |
594 c["builders"].append (BuilderConfig (name = "clang-3.9-debian", | |
595 workernames = ["mtmx-debian-x86_64"], | |
596 factory = mk_clang_3_9_factory (19, "-j2", "default"))) | |
597 | |
598 c["builders"].append (BuilderConfig (name = "clang-4.0-debian", | |
599 workernames = ["jwe-debian-x86_64-0"], | |
600 factory = mk_clang_4_0_factory (19, "-j8", "default"))) | |
601 | |
602 c["builders"].append (BuilderConfig (name = "stable-clang-4.0-debian", | |
603 workernames = ["jwe-debian-x86_64-0"], | |
604 factory = mk_clang_4_0_factory (19, "-j8", "stable"))) | |
605 | |
606 c["builders"].append (BuilderConfig (name = "clang-5.0-debian", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
607 workernames = ["jwe-debian-x86_64-3"], |
0 | 608 factory = mk_clang_5_0_factory (19, "-j8", "default"))) |
609 | |
610 c["builders"].append (BuilderConfig (name = "stable-clang-5.0-debian", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
611 workernames = ["jwe-debian-x86_64-3"], |
0 | 612 factory = mk_clang_5_0_factory (19, "-j8", "stable"))) |
613 | |
614 c["builders"].append (BuilderConfig (name = "clang-fedora", | |
615 workernames = ["das_fc25-x86_64"], | |
616 factory = mk_clang_factory (19, "-j8", "default"))) | |
617 | |
618 | |
619 c["builders"].append (BuilderConfig (name = "clang-osx", | |
620 workernames = ["epfl-elcapitan-x86_64"], | |
621 factory = mk_clang_osx_factory (0, "-j4", "default"))) | |
622 | |
623 c["builders"].append (BuilderConfig (name = "stable-clang-osx", | |
624 workernames = ["epfl-elcapitan-x86_64"], | |
625 factory = mk_clang_osx_factory (0, "-j4", "stable"))) | |
626 | |
627 | |
628 def mk_mxe_octave_hg_update_step (repo): | |
629 return Mercurial (repourl = repo, | |
630 defaultBranch = "default", branchType = "inrepo", | |
631 workdir = "src", mode = "full", method = "fresh", | |
632 haltOnFailure = True) | |
633 | |
634 | |
635 def mk_mxe_octave_bootstrap_step (nice = 0): | |
636 boot_cmd = build_cmd_list ("autoconf", nice = nice) | |
637 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
638 description = "bootstrap") | |
639 | |
640 | |
641 def mk_mxe_octave_configure_step (nice = 0, branch = "default", opts = []): | |
642 conf_cmd = build_cmd_list (["./configure", | |
643 "--with-pkg-dir=../../mxe-pkg-src", | |
644 "--with-ccache", "--enable-octave=" + branch, | |
645 "--enable-binary-packages"], | |
646 nice = nice, opts = opts) | |
647 return Configure (command = conf_cmd, workdir = "src", env = build_env) | |
648 | |
649 | |
650 def mk_mxe_octave_clean_step (nice = 0): | |
651 boot_cmd = build_cmd_list (["make", "clean"], nice = nice) | |
652 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
653 description = "clean") | |
654 | |
655 | |
656 ## Timeout is large for these steps because mxe-octave currently only | |
657 ## prints a status update for each package, not detailed output from | |
658 ## make. The way the dependencies currently work, making | |
659 ## hg-octave-dist will also cause all the build tools to be updated, | |
660 ## and some of those make take significant time to build, especially | |
661 ## if the build is running on a heavily loaded system and this step | |
662 ## has a high nice value. | |
663 | |
664 def mk_mxe_octave_hg_tarball_step (nice = 0, jobs = 8, branch = "default"): | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
665 |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
666 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs), "hg-octave-dist", "hg-octave-branch=" + branch], |
0 | 667 nice = nice) |
668 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
669 timeout = 14400) | |
670 | |
671 | |
672 def mk_mxe_octave_compile_step (nice = 0, jobs = 8, opts = []): | |
673 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs)], | |
674 nice = nice, opts = opts) | |
675 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
676 timeout = 14400) | |
677 | |
678 | |
679 def mk_mxe_octave_factory (nice, jobs, branch, configure_opts, compile_opts): | |
680 factory = BuildFactory () | |
681 | |
682 factory.addStep (mk_mxe_octave_hg_update_step (mxe_octave_hg_repo)) | |
683 factory.addStep (mk_mxe_octave_bootstrap_step (nice = nice)) | |
684 ## Must run configure to ensure clean target will work, then must | |
685 ## run configure again to recreate makefile. | |
686 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
687 opts = configure_opts)) | |
688 factory.addStep (mk_mxe_octave_clean_step (nice = nice)) | |
689 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
690 opts = configure_opts)) | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
691 |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
692 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs, |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
693 opts = "prerequisites")) |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
694 |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
695 if branch != "release": |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
696 ## Create a tarball file from an hg checkout, then build from that. |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
697 ## This also builds all dependencies for Octave, so it can take a |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
698 ## while. Using ccache should help us significantly since we are |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
699 ## typically rebuilding the same sets of packages repeatedly. |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
700 |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
701 factory.addStep (mk_mxe_octave_hg_tarball_step (nice = nice, jobs = jobs, |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
702 branch = branch)) |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
703 |
0 | 704 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs, |
705 opts = compile_opts)) | |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
706 |
0 | 707 ## factory.addStep (mk_mxe_octave_test_step (nice = nice)) |
708 | |
709 return factory | |
710 | |
711 | |
712 def mk_w32_factory (nice, jobs, branch, compile_opts): | |
713 return mk_mxe_octave_factory (nice, jobs, branch, | |
714 ["--enable-qt5", | |
715 "--enable-devel-tools", | |
716 "--disable-windows-64", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
717 "--disable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
718 "--disable-fortran-int64", |
0 | 719 "--disable-system-opengl"], |
720 compile_opts) | |
721 | |
722 | |
723 def mk_w64_32_factory (nice, jobs, branch, compile_opts): | |
724 return mk_mxe_octave_factory (nice, jobs, branch, | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
725 ["--enable-qt5", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
726 "--enable-devel-tools", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
727 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
728 "--enable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
729 "--disable-fortran-int64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
730 "--disable-system-opengl"], |
0 | 731 compile_opts) |
732 | |
733 | |
734 def mk_w64_64_factory (nice, jobs, branch, compile_opts): | |
735 return mk_mxe_octave_factory (nice, jobs, branch, | |
736 ["--enable-qt5", | |
737 "--enable-devel-tools", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
738 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
739 "--enable-64", |
0 | 740 "--enable-fortran-int64", |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
741 "--disable-system-opengl"], |
0 | 742 compile_opts) |
743 | |
744 | |
745 def mk_native_factory (nice, jobs, branch, compile_opts): | |
746 return mk_mxe_octave_factory (nice, jobs, branch, | |
747 ["--enable-native-build", | |
748 "--enable-qt5", | |
749 "--enable-lib64-directory", | |
750 "--enable-pic-flag", | |
751 "--disable-devel-tools", | |
752 "--enable-system-x11-libs", | |
753 "--enable-system-fontconfig", | |
754 "--enable-system-gcc", | |
755 "gnu-linux"], | |
756 compile_opts) | |
757 | |
758 | |
759 def mk_native_all_factory (nice, jobs, branch, compile_opts): | |
760 return mk_mxe_octave_factory (nice, jobs, branch, | |
761 ["--enable-native-build", | |
762 "--enable-qt5", | |
763 "--enable-lib64-directory", | |
764 "--enable-pic-flag", | |
765 "--disable-devel-tools", | |
766 "--disable-system-x11-libs", | |
767 "--disable-system-fontconfig", | |
768 "--disable-system-gcc", | |
769 "--disable-system-opengl", | |
770 "gnu-linux"], | |
771 compile_opts) | |
772 | |
773 | |
774 c["builders"].append (BuilderConfig (name = "w32-on-debian", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
775 workernames = ["jwe-debian-x86_64-3"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
776 factory = mk_w32_factory (19, 8, "default", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
777 ["nsis-installer", "7z-dist"]))) |
0 | 778 |
779 c["builders"].append (BuilderConfig (name = "w64-32-on-debian", | |
780 workernames = ["jwe-debian-x86_64-0"], | |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
781 factory = mk_w64_32_factory (19, 8, "default", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
782 ["nsis-installer", "7z-dist"]))) |
0 | 783 |
784 c["builders"].append (BuilderConfig (name = "w64-64-on-debian", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
785 workernames = ["jwe-debian-x86_64-2"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
786 factory = mk_w64_64_factory (19, 8, "default", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
787 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
788 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
789 c["builders"].append (BuilderConfig (name = "w32-release-on-debian", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
790 workernames = ["jwe-debian-x86_64-3"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
791 factory = mk_w32_factory (19, 8, "release", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
792 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
793 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
794 c["builders"].append (BuilderConfig (name = "w64-32-release-on-debian", |
0 | 795 workernames = ["jwe-debian-x86_64-0"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
796 factory = mk_w64_32_factory (19, 8, "release", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
797 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
798 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
799 c["builders"].append (BuilderConfig (name = "w64-64-release-on-debian", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
800 workernames = ["jwe-debian-x86_64-2"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
801 factory = mk_w64_64_factory (19, 8, "release", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
802 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
803 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
804 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
805 c["builders"].append (BuilderConfig (name = "w32-stable-on-debian", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
806 workernames = ["jwe-debian-x86_64-3"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
807 factory = mk_w32_factory (19, 8, "stable", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
808 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
809 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
810 c["builders"].append (BuilderConfig (name = "w64-32-stable-on-debian", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
811 workernames = ["jwe-debian-x86_64-0"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
812 factory = mk_w64_32_factory (19, 8, "stable", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
813 ["nsis-installer", "7z-dist"]))) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
814 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
815 c["builders"].append (BuilderConfig (name = "w64-64-stable-on-debian", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
816 workernames = ["jwe-debian-x86_64-2"], |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
817 factory = mk_w64_64_factory (19, 8, "stable", |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
818 ["nsis-installer", "7z-dist"]))) |
0 | 819 |
820 c["builders"].append (BuilderConfig (name = "mxe-native-on-debian", | |
821 workernames = ["jwe-debian-x86_64-0"], | |
822 factory = mk_native_factory (19, 8, "default", "tar-dist"))) | |
823 | |
824 c["builders"].append (BuilderConfig (name = "mxe-native-all-on-debian", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
825 workernames = ["jwe-debian-x86_64-2"], |
0 | 826 factory = mk_native_all_factory (19, 8, "default", "tar-dist"))) |
827 | |
828 | |
829 ## PROJECT IDENTITY | |
830 | |
831 ## the 'title' string will appear at the top of this buildbot | |
832 ## installation's html.WebStatus home page (linked to the 'titleURL') | |
833 ## and is embedded in the title of the waterfall HTML page. | |
834 | |
835 c["title"] = "GNU Octave Buildbot" | |
836 c["titleURL"] = "https://octave.org" | |
837 | |
838 # The 'buildbotURL' string should point to the location where the buildbot's | |
839 # internal web server is visible. This typically uses the port number set in | |
840 # the 'www' entry below, but with an externally-visible host name which the | |
841 # buildbot cannot figure out without some help. | |
842 | |
5
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
843 c['buildbotURL'] = "http://buildbot.octave.org:8010/" |
0 | 844 |
845 ## Minimalistic config to activate new web UI | |
846 | |
847 from buildbot.plugins import util | |
848 | |
849 c['www'] = { | |
5
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
850 "port" : 8010, |
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
851 "auth" : util.UserPasswordAuth (octave_buildbot_config.master_id_and_pass), |
0 | 852 "plugins" : { "waterfall_view" : True } |
853 } | |
854 | |
855 ## DB URL | |
856 | |
857 ## This specifies what database buildbot uses to store its state. You | |
858 ## can leave this at its default for all but the largest installations. | |
859 | |
860 c["db"] = { "db_url" : "sqlite:///state.sqlite" } | |
861 | |
862 ## NOTIFICATIONS | |
863 | |
864 from buildbot.plugins import reporters | |
865 | |
866 c["services"] = [] | |
867 | |
868 m = reporters.MailNotifier (fromaddr = "NO-REPLY@octave.org", | |
869 sendToInterestedUsers = False, | |
870 extraRecipients = ["octave-buildbot@gnu.org"], | |
871 mode = "failing") | |
872 c["services"].append (m) |