Mercurial > octave-buildbot
annotate master.cfg @ 55:a66ed5a63f02
redistribute builds on jwe systems and reorder lists
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Sep 2023 09:21:33 -0400 |
parents | 92ec1f0534e3 |
children | cd5932f2ce0e |
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 | |
14
24e67c30e215
syntax update for buildbot 2.7
John W. Eaton <jwe@octave.org>
parents:
13
diff
changeset
|
43 for worker, info in octave_buildbot_config.workers.items (): |
0 | 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" | |
16
b2e9c6f7d3e5
use savannah for both stable and default branches of octave
John W. Eaton <jwe@octave.org>
parents:
15
diff
changeset
|
61 stable_octave_hg_repo = "https://hg.savannah.gnu.org/hgweb/octave" |
48 | 62 mxe_octave_hg_repo = "https://hg.octave.org/mxe-octave" |
0 | 63 |
64 ## CHANGESOURCES | |
65 | |
66 ## the 'change_source' setting tells the buildmaster how it should | |
67 ## find out about source code changes. Here we point to the buildbot | |
68 ## clone of Octave. | |
69 | |
70 from buildbot.changes.hgpoller import HgPoller | |
71 | |
72 c["change_source"] = [] | |
73 | |
74 c["change_source"].append (HgPoller (project = "octave", | |
42 | 75 branch = "default", |
0 | 76 repourl = octave_hg_repo, |
77 workdir = "octave-hg-repo", | |
78 pollinterval = 5*60)) | |
79 | |
80 c["change_source"].append (HgPoller (project = "stable octave", | |
81 branch = "stable", | |
82 repourl = stable_octave_hg_repo, | |
83 workdir = "stable-octave-hg-repo", | |
84 pollinterval = 5*60)) | |
85 | |
86 c["change_source"].append (HgPoller (project = "mxe-octave", | |
42 | 87 branch = "default", |
0 | 88 repourl = mxe_octave_hg_repo, |
89 workdir = "mxe-octave-hg-repo", | |
90 pollinterval = 15*60)) | |
91 | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
92 c["change_source"].append (HgPoller (project = "release mxe-octave", |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
93 branch = "release", |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
94 repourl = mxe_octave_hg_repo, |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
95 workdir = "mxe-octave-hg-repo", |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
96 pollinterval = 15*60)) |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
97 |
0 | 98 ## FILTERS |
99 | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
100 from buildbot.plugins import util |
0 | 101 |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
102 octave_default_filter = util.ChangeFilter (project = "octave") |
0 | 103 |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
104 octave_stable_filter = util.ChangeFilter (project = "stable octave") |
0 | 105 |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
106 mxe_octave_default_filter = util.ChangeFilter (project = ["mxe-octave", "octave"]) |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
107 mxe_octave_release_filter = util.ChangeFilter (project = ["release mxe-octave"]) |
42 | 108 mxe_octave_stable_filter = util.ChangeFilter (project = ["release mxe-octave", "stable octave"]) |
0 | 109 |
110 ## SCHEDULERS | |
111 | |
112 ## Configure the Schedulers, which decide how to react to incoming | |
113 ## changes. | |
114 | |
115 from buildbot.schedulers.basic import SingleBranchScheduler | |
116 from buildbot.schedulers.forcesched import ForceScheduler | |
117 from buildbot.schedulers import timed | |
118 | |
119 all_default_octave_builders = []; | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
120 all_default_octave_builders.append ("gcc-debian") ## jwe-debian-x86_64-4 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
121 all_default_octave_builders.append ("gcc-lto-debian") ## jwe-debian-x86_64-4 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
122 all_default_octave_builders.append ("clang-debian") ## jwe-debian-x86_64-5 |
0 | 123 all_default_octave_builders.append ("gcc-fedora") # das |
124 all_default_octave_builders.append ("gcc-lto-fedora") # das | |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
125 all_default_octave_builders.append ("clang-fedora") # das |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
126 all_default_octave_builders.append ("no-extras-debian") ## jwe-debian-x86_64-4 |
50
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
127 #all_default_octave_builders.append ("gcc-6-debian") # mtmx |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
128 #all_default_octave_builders.append ("clang-3.9-debian") # mtmx |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
129 #all_default_octave_builders.append ("clang-osx") # simone |
0 | 130 |
131 all_stable_octave_builders = []; | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
132 all_stable_octave_builders.append ("stable-gcc-debian") # jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
133 all_stable_octave_builders.append ("stable-gcc-lto-debian") # jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
134 all_stable_octave_builders.append ("stable-clang-debian") # jwe-debian-x86_64-5 |
0 | 135 all_stable_octave_builders.append ("stable-gcc-fedora") # das |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
136 all_stable_octave_builders.append ("stable-clang-fedora") # das |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
137 all_stable_octave_builders.append ("stable-no-extras-debian") # jwe-debian-x86_64-5 |
50
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
138 #all_stable_octave_builders.append ("stable-clang-osx") # simone |
0 | 139 |
140 all_mxe_octave_builders = []; | |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
141 all_mxe_octave_builders.append ("w32-on-debian") # jwe-debian-x86_64-4 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
142 all_mxe_octave_builders.append ("w32-release-on-debian") # jwe-debian-x86_64-4 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
143 all_mxe_octave_builders.append ("w32-stable-on-debian") # jwe-debian-x86_64-4 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
144 |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
145 all_mxe_octave_builders.append ("w64-32-on-debian") ## jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
146 all_mxe_octave_builders.append ("w64-32-release-on-debian") ## jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
147 all_mxe_octave_builders.append ("w64-32-stable-on-debian") ## jwe-debian-x86_64-5 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
148 |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
149 all_mxe_octave_builders.append ("w64-64-on-debian") ## jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
150 all_mxe_octave_builders.append ("w64-64-release-on-debian") ## jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
151 all_mxe_octave_builders.append ("w64-64-stable-on-debian") ## jwe-debian-x86_64-5 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
152 |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
153 all_mxe_octave_builders.append ("mxe-native-on-debian") ## jwe-debian-x86_64-5 |
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
154 all_mxe_octave_builders.append ("mxe-native-all-on-debian") ## jwe-debian-x86_64-5 |
0 | 155 |
156 c["schedulers"] = [] | |
157 | |
158 c["schedulers"].append (SingleBranchScheduler (name = "default octave", | |
159 change_filter = octave_default_filter, | |
160 treeStableTimer = 5*60, | |
161 builderNames = all_default_octave_builders)) | |
162 | |
20 | 163 ### DISABLED because there doesn't seem to be a way to limit this |
164 ### action to users logged in to the web interface; instead, forcing | |
165 ### builds is allowed for anyone. WTF!?! | |
166 ### c["schedulers"].append (ForceScheduler (name = "force_default_octave", builderNames = all_default_octave_builders)) | |
0 | 167 |
168 c["schedulers"].append (SingleBranchScheduler (name = "stable octave", | |
169 change_filter = octave_stable_filter, | |
170 treeStableTimer = 5*60, | |
171 builderNames = all_stable_octave_builders)) | |
172 | |
20 | 173 ### DISABLED because there doesn't seem to be a way to limit this |
174 ### action to users logged in to the web interface; instead, forcing | |
175 ### builds is allowed for anyone. WTF!?! | |
176 ### c["schedulers"].append (ForceScheduler (name = "force_stable_octave", builderNames = all_stable_octave_builders)) | |
0 | 177 |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
178 ### HOUR is UTC. Stagger the w64-32, w64-64, and mxe-native builds |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
179 ### because they are all done on the same system. |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
180 |
0 | 181 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32", |
182 change_filter = mxe_octave_default_filter, | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
183 onlyIfChanged = True, |
0 | 184 builderNames = ["w32-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
185 hour = 4)) |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
186 |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
187 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-release", |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
188 change_filter = mxe_octave_release_filter, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
189 onlyIfChanged = True, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
190 builderNames = ["w32-release-on-debian"], |
38
6d7c3a59c1e7
adjust mxe-octave build times; move mxe-octave native builds to faster system
John W. Eaton <jwe@octave.org>
parents:
37
diff
changeset
|
191 hour = 6)) |
0 | 192 |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
193 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-stable", |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
194 change_filter = mxe_octave_stable_filter, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
195 onlyIfChanged = True, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
196 builderNames = ["w32-stable-on-debian"], |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
197 hour = 8)) |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
198 |
0 | 199 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32", |
200 change_filter = mxe_octave_default_filter, | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
201 onlyIfChanged = True, |
0 | 202 builderNames = ["w64-32-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
203 hour = 4)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
204 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
205 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-release", |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
206 change_filter = mxe_octave_release_filter, |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
207 onlyIfChanged = True, |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
208 builderNames = ["w64-32-release-on-debian"], |
38
6d7c3a59c1e7
adjust mxe-octave build times; move mxe-octave native builds to faster system
John W. Eaton <jwe@octave.org>
parents:
37
diff
changeset
|
209 hour = 6)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
210 |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
211 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-stable", |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
212 change_filter = mxe_octave_stable_filter, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
213 onlyIfChanged = True, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
214 builderNames = ["w64-32-stable-on-debian"], |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
215 hour = 8)) |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
216 |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
217 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64", |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
218 change_filter = mxe_octave_default_filter, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
219 onlyIfChanged = True, |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
220 builderNames = ["w64-64-on-debian"], |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
221 hour = 10)) |
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
222 |
3
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-release", |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
224 change_filter = mxe_octave_release_filter, |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
225 onlyIfChanged = True, |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
226 builderNames = ["w64-64-release-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
227 hour = 12)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
228 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
229 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-stable", |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
230 change_filter = mxe_octave_stable_filter, |
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
231 onlyIfChanged = True, |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
232 builderNames = ["w64-64-stable-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
233 hour = 14)) |
0 | 234 |
235 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native", | |
236 change_filter = mxe_octave_default_filter, | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
237 onlyIfChanged = True, |
0 | 238 builderNames = ["mxe-native-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
239 hour = 16)) |
0 | 240 |
241 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native-all", | |
242 change_filter = mxe_octave_default_filter, | |
39
13f4c49e9a4b
attempt to perform timed mxe-octave builds only if something has changed
John W. Eaton <jwe@octave.org>
parents:
38
diff
changeset
|
243 onlyIfChanged = True, |
0 | 244 builderNames = ["mxe-native-all-on-debian"], |
53
08a1c9cd3d2b
adjust scheduling of mxe-octave builds
John W. Eaton <jwe@octave.org>
parents:
52
diff
changeset
|
245 hour = 18)) |
0 | 246 |
20 | 247 ### DISABLED because there doesn't seem to be a way to limit this |
248 ### action to users logged in to the web interface; instead, forcing | |
249 ### builds is allowed for anyone. WTF!?! | |
250 ### c["schedulers"].append (ForceScheduler (name = "force_mxe_octave", builderNames = all_mxe_octave_builders)) | |
0 | 251 |
252 ## BUILDERS | |
253 | |
254 ## The 'builders' list defines the Builders, which tell Buildbot how | |
255 ## to perform a build: what steps, and which workers can execute them. | |
256 ## Note that any particular build will only take place on one worker. | |
257 | |
258 from buildbot.process.factory import BuildFactory | |
259 from buildbot.steps.source.mercurial import Mercurial | |
260 from buildbot.steps.shell import ShellCommand | |
261 from buildbot.steps.shell import Configure | |
262 from buildbot.steps.shell import Compile | |
263 from buildbot.steps.shell import Test | |
264 | |
265 ## Steps we may use in more than one build factory. | |
266 | |
267 def build_cmd_list (cmd, nice = 0, opts = []): | |
268 cmd_list = [] | |
269 | |
270 if nice != 0: | |
271 cmd_list.extend (["nice", "-n", str (nice)]) | |
272 | |
273 if isinstance (cmd, list): | |
274 cmd_list.extend (cmd) | |
275 else: | |
276 cmd_list.append (cmd) | |
277 | |
278 if isinstance (opts, list): | |
279 cmd_list.extend (opts) | |
280 else: | |
281 cmd_list.append (opts) | |
282 | |
283 return cmd_list | |
284 | |
285 | |
286 build_env = { "PATH" : "${HOME}/bin:${PATH}" }; | |
287 | |
288 def mk_octave_hg_update_step (repo, branch): | |
289 return Mercurial (repourl = repo, | |
43 | 290 defaultBranch = branch, |
291 branchType = "inrepo", mode = "full", method = "fresh", | |
292 alwaysUseLatest = True, | |
293 haltOnFailure = True, | |
294 workdir = "src") | |
0 | 295 |
296 def mk_octave_bootstrap_step (nice = 0): | |
297 boot_cmd = build_cmd_list ("./bootstrap", nice = nice) | |
298 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
299 description = "bootstrap") | |
300 | |
301 sh_rm_build_dir = ShellCommand (command = ["rm", "-rf", "build"], workdir = ".", | |
302 env = build_env, description = "clean build dir") | |
303 | |
304 sh_mk_build_dir = ShellCommand (command = ["mkdir", "build"], | |
305 description = "create build dir") | |
306 | |
307 def mk_octave_configure_step (nice = 0, opts = []): | |
308 conf_cmd = build_cmd_list ("../src/configure", nice = nice, opts = opts) | |
309 return Configure (command = conf_cmd, workdir = "build", env = build_env) | |
310 | |
311 | |
36
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
312 def mk_octave_compile_step (nice = 0, opts = [], xvfb = True): |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
313 if xvfb: |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
314 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"] |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
315 else: |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
316 cmd = [] |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
317 cmd.extend (["make", "V=1"]) |
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
318 make_cmd = build_cmd_list (cmd, nice = nice, opts = opts) |
0 | 319 return Compile (command = make_cmd, workdir = "build", env = build_env, |
320 warningPattern = ":[0-9][0-9]*:[0-9][0-9]*:warning: ") | |
321 | |
322 import re | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
323 from buildbot.process import logobserver |
0 | 324 from buildbot.process.results import SUCCESS |
325 from buildbot.process.results import FAILURE | |
326 from buildbot.process.results import WARNINGS | |
327 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
328 class octave_test_observer (logobserver.LogLineObserver): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
329 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
330 def __init__ (self, warningPattern): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
331 logobserver.LogLineObserver.__init__ (self) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
332 if warningPattern: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
333 self.warningPattern = re.compile (warningPattern) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
334 else: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
335 self.warningPattern = None |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
336 self.rc = SUCCESS |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
337 self.total = 0 |
2 | 338 self.passed = 0 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
339 self.failed = 0 |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
340 self.warnings = 0 |
12
318c34f152fb
attempt to also notice segfaults as errors
Markus Mützel <markus.muetzel@gmx.de>
parents:
11
diff
changeset
|
341 self.errors = 0 |
2 | 342 self.summary_found = False |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
343 self.complete = False |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
344 |
2 | 345 summaryRe = re.compile (r"^Summary: *$") |
346 testsRe = re.compile (r"^ *(PASS|FAIL|REGRESSION|XFAIL|SKIP)[^\d]*(\d+)") | |
21
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
347 fatalRe = re.compile (r"[Ff][Aa][Tt][Aa][Ll]") |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
348 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
349 def outLineReceived (self, line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
350 if self.warningPattern.match (line): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
351 self.warnings += 1 |
2 | 352 |
353 if not self.summary_found: | |
354 mo = self.summaryRe.search (line) | |
355 if mo: | |
356 self.summary_found = True | |
357 return | |
358 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
359 mo = self.testsRe.search (line) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
360 if mo: |
2 | 361 typ = mo.group(1) |
362 num = int (mo.group(2)) | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
363 self.total += num |
2 | 364 if typ == "PASS": |
365 self.passed += num | |
366 if typ == "FAIL" or typ == "REGRESSION": | |
367 if num > 0: | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
368 self.rc = FAILURE |
2 | 369 self.failed += num |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
370 |
19
e7bc00398e25
Make "errLineReceived" a method of "octave_test_observer" (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
18
diff
changeset
|
371 def errLineReceived (self, line): |
21
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
372 mo = self.fatalRe.search (line) |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
373 if mo: |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
374 self.total += 1 |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
375 self.errors += 1 |
58667d78ead7
errLineReceived: Try to only count fatal errors (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
20
diff
changeset
|
376 self.rc = FAILURE |
19
e7bc00398e25
Make "errLineReceived" a method of "octave_test_observer" (bug #58393).
Markus Mützel <markus.muetzel@gmx.de>
parents:
18
diff
changeset
|
377 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
378 |
0 | 379 class octave_test (Test): |
380 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
381 def __init__ (self, *args, **kwargs): |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
382 Test.__init__ (self, *args, **kwargs) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
383 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
|
384 self.addLogObserver ('stdio', self.observer) |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
385 |
0 | 386 def evaluateCommand (self, cmd): |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
387 if self.observer.total: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
388 passed = self.observer.total - self.observer.failed |
0 | 389 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
390 self.setTestResults (total = self.observer.total, |
12
318c34f152fb
attempt to also notice segfaults as errors
Markus Mützel <markus.muetzel@gmx.de>
parents:
11
diff
changeset
|
391 failed = self.observer.failed + self.observer.errors, |
2 | 392 passed = self.observer.passed, |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
393 warnings = self.observer.warnings) |
0 | 394 |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
395 rc = self.observer.rc |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
396 if rc == SUCCESS and self.observer.warnings: |
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
397 rc = WARNINGS |
0 | 398 return rc |
399 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
400 |
0 | 401 def mk_octave_test_step (nice = 0, xvfb = True): |
402 if xvfb: | |
403 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"] | |
404 else: | |
405 cmd = [] | |
406 cmd.extend (["make", "V=1", "check"]) | |
407 test_cmd = build_cmd_list (cmd, nice = nice) | |
408 return octave_test (command = test_cmd, workdir = "build", env = build_env) | |
409 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
410 |
0 | 411 def mk_octave_factory (nice, configure_opts, compile_opts, branch, xvfb = True): |
412 factory = BuildFactory () | |
413 | |
414 factory.addStep (mk_octave_hg_update_step (octave_hg_repo, branch)) | |
415 factory.addStep (mk_octave_bootstrap_step (nice = nice)) | |
416 factory.addStep (sh_rm_build_dir) | |
417 factory.addStep (sh_mk_build_dir) | |
418 factory.addStep (mk_octave_configure_step (nice = nice, opts = configure_opts)) | |
36
2e1359850798
execute compile step with xvfb-run
John W. Eaton <jwe@octave.org>
parents:
35
diff
changeset
|
419 factory.addStep (mk_octave_compile_step (nice = nice, opts = compile_opts, xvfb = xvfb)) |
0 | 420 factory.addStep (mk_octave_test_step (nice = nice, xvfb = xvfb)) |
421 | |
422 return factory | |
423 | |
1
97e7b7963dc9
make test log filtering work again
John W. Eaton <jwe@octave.org>
parents:
0
diff
changeset
|
424 |
0 | 425 def mk_gcc_factory (nice, compile_opts, branch): |
426 return mk_octave_factory (nice, [], compile_opts, branch) | |
427 | |
428 | |
429 def mk_gcc_4_9_factory (nice, compile_opts, branch): | |
430 return mk_octave_factory (nice, | |
431 ["CC=gcc-4.9", "CXX=g++-4.9", "F77=gfortran-4.9", "--without-magick"], | |
432 compile_opts, branch) | |
433 | |
434 | |
435 ## Default build. | |
436 def mk_gcc_5_factory (nice, compile_opts, branch): | |
437 return mk_octave_factory (nice, | |
438 ["CC=gcc-5", "CXX=g++-5", "F77=gfortran-5"], | |
439 compile_opts, branch) | |
440 | |
441 | |
442 def mk_gcc_6_factory (nice, compile_opts, branch): | |
443 return mk_octave_factory (nice, | |
444 ["CC=gcc-6", "CXX=g++-6", "F77=gfortran-6"], | |
445 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
446 |
0 | 447 |
448 def mk_gcc_7_factory (nice, compile_opts, branch): | |
449 return mk_octave_factory (nice, | |
450 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7"], | |
451 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
452 |
0 | 453 |
454 def mk_gcc_7_lto_factory (nice, compile_opts, branch): | |
455 return mk_octave_factory (nice, | |
456 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7", | |
457 "CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
458 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
459 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
460 "LDFLAGS=-flto=4", | |
461 "NM=gcc-nm-7", "AR=gcc-ar-7", "RANLIB=gcc-ranlib-7"], | |
462 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
463 |
0 | 464 |
465 def mk_gcc_lto_factory (nice, compile_opts, branch): | |
466 return mk_octave_factory (nice, | |
467 ["CFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
468 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
469 "FFLAGS=-O2 -flto=4 -ffat-lto-objects", | |
470 "LDFLAGS=-flto=4", | |
471 "NM=gcc-nm", "AR=gcc-ar", "RANLIB=gcc-ranlib"], | |
472 compile_opts, branch) | |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
473 |
0 | 474 |
475 no_extras = ["--disable-docs", | |
476 "--disable-fftw-threads", | |
477 "--disable-java", | |
478 "--disable-jit", | |
479 "--disable-openmp", | |
480 "--disable-readline", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
481 "--disable-rapidjson", |
0 | 482 "--without-amd", |
483 "--without-arpack", | |
484 "--without-bz2", | |
485 "--without-camd", | |
486 "--without-ccolamd", | |
487 "--without-cholmod", | |
488 "--without-colamd", | |
489 "--without-curl", | |
490 "--without-cxsparse", | |
491 "--without-fftw3", | |
492 "--without-fftw3f", | |
493 "--without-fltk", | |
17
cfa6aaf2a7eb
use --without-fontconfig and --without-freetype for no-extras builds
John W. Eaton <jwe@octave.org>
parents:
16
diff
changeset
|
494 "--without-fontconfig", |
0 | 495 "--without-framework-opengl", |
17
cfa6aaf2a7eb
use --without-fontconfig and --without-freetype for no-extras builds
John W. Eaton <jwe@octave.org>
parents:
16
diff
changeset
|
496 "--without-freetype", |
0 | 497 "--without-glpk", |
498 "--without-hdf5", | |
499 "--without-klu", | |
500 "--without-magick", | |
501 "--without-opengl", | |
502 "--without-openssl", | |
503 "--without-portaudio", | |
504 "--without-qhull", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
505 "--without-qhull_r", |
0 | 506 "--without-qrupdate", |
507 "--without-qscintilla", | |
508 "--without-qt", | |
509 "--without-sndfile", | |
29
819a898b1960
no-extras factory: Add more switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28
diff
changeset
|
510 "--without-spqr", |
0 | 511 "--without-sundials_ida", |
512 "--without-sundials_nvecserial", | |
513 "--without-umfpack", | |
514 "--without-x", | |
515 "--without-z"] | |
516 | |
517 def mk_no_extras_factory (nice, compile_opts, branch): | |
518 return mk_octave_factory (nice, no_extras, compile_opts, branch) | |
519 | |
520 | |
521 def mk_clang_3_8_factory (nice, compile_opts, branch): | |
522 return mk_octave_factory (nice, | |
523 ["CC=clang-3.8", "CXX=clang++-3.8"], | |
524 compile_opts, branch) | |
525 | |
526 | |
527 def mk_clang_3_9_factory (nice, compile_opts, branch): | |
528 return mk_octave_factory (nice, | |
529 ["CC=clang-3.9", "CXX=clang++-3.9"], | |
530 compile_opts, branch) | |
531 | |
532 def mk_clang_4_0_factory (nice, compile_opts, branch): | |
533 return mk_octave_factory (nice, | |
534 ["CC=clang-4.0", "CXX=clang++-4.0"], | |
535 compile_opts, branch) | |
536 | |
537 def mk_clang_5_0_factory (nice, compile_opts, branch): | |
538 return mk_octave_factory (nice, | |
539 ["CC=clang-5.0", "CXX=clang++-5.0"], | |
540 compile_opts, branch) | |
541 | |
542 def mk_clang_factory (nice, compile_opts, branch): | |
543 return mk_octave_factory (nice, | |
544 ["CC=clang", "CXX=clang++"], | |
545 compile_opts, branch) | |
546 | |
547 def mk_clang_osx_factory (nice, compile_opts, branch): | |
548 ## The linker does search /usr/local/lib, but it does so after | |
549 ## searching /usr/lib. That selects a readline library that is not | |
550 ## fully compatible with GNU readline. | |
551 return mk_octave_factory (nice, | |
552 ["CC=clang", | |
553 "CXX=clang++", | |
554 "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", | |
555 "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", | |
556 "PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig", | |
557 "--enable-link-all-dependencies", | |
558 "--with-x=no", | |
559 "--without-osmesa", | |
560 "--with-blas=openblas"], | |
561 compile_opts, branch, xvfb = False) | |
562 | |
563 from buildbot.config import BuilderConfig | |
564 | |
565 c["builders"] = [] | |
566 | |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
567 c["builders"].append (BuilderConfig (name = "gcc-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
568 workernames = ["jwe-debian-x86_64-4"], |
35
ba54973baf45
redistribute load on jwe systems
John W. Eaton <jwe@octave.org>
parents:
34
diff
changeset
|
569 factory = mk_gcc_factory (19, "-j16", "default"))) |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
570 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
571 c["builders"].append (BuilderConfig (name = "gcc-lto-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
572 workernames = ["jwe-debian-x86_64-4"], |
32 | 573 factory = mk_gcc_lto_factory (19, "-j16", "default"))) |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
574 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
575 c["builders"].append (BuilderConfig (name = "clang-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
576 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
577 factory = mk_clang_factory (19, "-j8", "default"))) |
0 | 578 |
579 c["builders"].append (BuilderConfig (name = "gcc-fedora", | |
580 workernames = ["das_fc25-x86_64"], | |
11 | 581 factory = mk_gcc_factory (0, "-j4", "default"))) |
0 | 582 |
583 c["builders"].append (BuilderConfig (name = "gcc-lto-fedora", | |
584 workernames = ["das_fc25-x86_64"], | |
11 | 585 factory = mk_gcc_lto_factory (10, "-j4", "default"))) |
0 | 586 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
587 c["builders"].append (BuilderConfig (name = "clang-fedora", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
588 workernames = ["das_fc25-x86_64"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
589 factory = mk_clang_factory (19, "-j4", "default"))) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
590 |
0 | 591 c["builders"].append (BuilderConfig (name = "no-extras-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
592 workernames = ["jwe-debian-x86_64-4"], |
32 | 593 factory = mk_no_extras_factory (19, "-j16", "default"))) |
0 | 594 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
595 #c["builders"].append (BuilderConfig (name = "gcc-6-debian", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
596 # workernames = ["mtmx-debian-x86_64"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
597 # factory = mk_gcc_6_factory (10, "-j2", "default"))) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
598 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
599 #c["builders"].append (BuilderConfig (name = "clang-osx", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
600 # workernames = ["epfl-elcapitan-x86_64"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
601 # factory = mk_clang_osx_factory (0, "-j4", "default"))) |
0 | 602 |
50
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
603 #c["builders"].append (BuilderConfig (name = "clang-3.9-debian", |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
604 # workernames = ["mtmx-debian-x86_64"], |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
605 # factory = mk_clang_3_9_factory (19, "-j2", "default"))) |
0 | 606 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
607 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
608 c["builders"].append (BuilderConfig (name = "stable-gcc-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
609 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
610 factory = mk_gcc_factory (19, "-j16", "stable"))) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
611 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
612 c["builders"].append (BuilderConfig (name = "stable-gcc-lto-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
613 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
614 factory = mk_gcc_lto_factory (19, "-j16", "stable"))) |
23
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
615 |
0e1fc3eea4d0
new build configs; adjust load; move w64-64 to different system
John W. Eaton <jwe@octave.org>
parents:
22
diff
changeset
|
616 c["builders"].append (BuilderConfig (name = "stable-clang-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
617 workernames = ["jwe-debian-x86_64-5"], |
35
ba54973baf45
redistribute load on jwe systems
John W. Eaton <jwe@octave.org>
parents:
34
diff
changeset
|
618 factory = mk_clang_factory (19, "-j8", "stable"))) |
0 | 619 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
620 c["builders"].append (BuilderConfig (name = "stable-gcc-fedora", |
0 | 621 workernames = ["das_fc25-x86_64"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
622 factory = mk_gcc_factory (0, "-j4", "stable"))) |
0 | 623 |
13
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
624 c["builders"].append (BuilderConfig (name = "stable-clang-fedora", |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
625 workernames = ["das_fc25-x86_64"], |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
626 factory = mk_clang_factory (19, "-j4", "stable"))) |
9f694d100a7b
new stable-clang-fedora builder
John W. Eaton <jwe@octave.org>
parents:
12
diff
changeset
|
627 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
628 c["builders"].append (BuilderConfig (name = "stable-no-extras-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
629 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
630 factory = mk_no_extras_factory (19, "-j16", "stable"))) |
0 | 631 |
50
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
632 #c["builders"].append (BuilderConfig (name = "stable-clang-osx", |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
633 # workernames = ["epfl-elcapitan-x86_64"], |
a1b74219141f
master.cfg: comment out (permanently?) unavailable builders
John W. Eaton <jwe@octave.org>
parents:
49
diff
changeset
|
634 # factory = mk_clang_osx_factory (0, "-j4", "stable"))) |
0 | 635 |
636 | |
37
f42084477c28
Use different branches for building MXE Octave release and stable or default.
Markus Mützel <markus.muetzel@gmx.de>
parents:
36
diff
changeset
|
637 def mk_mxe_octave_hg_update_step (repo, mxe_branch): |
0 | 638 return Mercurial (repourl = repo, |
43 | 639 defaultBranch = mxe_branch, |
640 branchType = "inrepo", mode = "full", method = "fresh", | |
641 alwaysUseLatest = True, | |
642 haltOnFailure = True, | |
643 workdir = "src") | |
0 | 644 |
645 | |
646 def mk_mxe_octave_bootstrap_step (nice = 0): | |
10
c1bb39356540
master.cfg: Run bootstrap script for MXE Octave builders (bug #55802).
Markus Mützel <markus.muetzel@gmx.de>
parents:
9
diff
changeset
|
647 boot_cmd = build_cmd_list ("./bootstrap", nice = nice) |
0 | 648 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, |
649 description = "bootstrap") | |
650 | |
651 | |
652 def mk_mxe_octave_configure_step (nice = 0, branch = "default", opts = []): | |
653 conf_cmd = build_cmd_list (["./configure", | |
654 "--with-pkg-dir=../../mxe-pkg-src", | |
655 "--with-ccache", "--enable-octave=" + branch, | |
656 "--enable-binary-packages"], | |
657 nice = nice, opts = opts) | |
658 return Configure (command = conf_cmd, workdir = "src", env = build_env) | |
659 | |
660 | |
661 def mk_mxe_octave_clean_step (nice = 0): | |
662 boot_cmd = build_cmd_list (["make", "clean"], nice = nice) | |
663 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env, | |
664 description = "clean") | |
665 | |
666 | |
667 ## Timeout is large for these steps because mxe-octave currently only | |
668 ## prints a status update for each package, not detailed output from | |
669 ## make. The way the dependencies currently work, making | |
670 ## hg-octave-dist will also cause all the build tools to be updated, | |
671 ## and some of those make take significant time to build, especially | |
672 ## if the build is running on a heavily loaded system and this step | |
673 ## has a high nice value. | |
674 | |
46
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
675 def mk_mxe_octave_hg_tarball_step (nice = 0, jobs = [1, 8], branch = "default"): |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
676 |
46
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
677 make_cmd = build_cmd_list (["make", |
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
678 "--jobs=" + str (jobs[0]), |
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
679 "JOBS=" + str (jobs[1]), |
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
680 "hg-octave-dist", |
42f808f31738
fix jobs spec error in previous change
John W. Eaton <jwe@octave.org>
parents:
45
diff
changeset
|
681 "hg-octave-branch=" + branch], |
0 | 682 nice = nice) |
683 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
684 timeout = 14400) | |
685 | |
686 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
687 def mk_mxe_octave_compile_step (nice = 0, jobs = [1, 8], opts = []): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
688 make_cmd = build_cmd_list (["make", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
689 "--jobs=" + str (jobs[0]), |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
690 "JOBS=" + str (jobs[1])], |
0 | 691 nice = nice, opts = opts) |
692 return Compile (command = make_cmd, workdir = "src", env = build_env, | |
693 timeout = 14400) | |
694 | |
695 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
696 def mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, configure_opts, build_octave_opts, build_pkg_opts): |
0 | 697 factory = BuildFactory () |
698 | |
37
f42084477c28
Use different branches for building MXE Octave release and stable or default.
Markus Mützel <markus.muetzel@gmx.de>
parents:
36
diff
changeset
|
699 factory.addStep (mk_mxe_octave_hg_update_step (mxe_octave_hg_repo, mxe_branch)) |
0 | 700 factory.addStep (mk_mxe_octave_bootstrap_step (nice = nice)) |
701 ## Must run configure to ensure clean target will work, then must | |
702 ## run configure again to recreate makefile. | |
703 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
704 opts = configure_opts)) | |
705 factory.addStep (mk_mxe_octave_clean_step (nice = nice)) | |
706 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch, | |
707 opts = configure_opts)) | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
708 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
709 factory.addStep (mk_mxe_octave_compile_step (nice = nice, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
710 jobs = build_octave_jobs, |
6
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
711 opts = "prerequisites")) |
c8ce098ecc08
mxe-octave: update build rules
John W. Eaton <jwe@octave.org>
parents:
5
diff
changeset
|
712 |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
713 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
|
714 ## 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
|
715 ## 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
|
716 ## 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
|
717 ## 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
|
718 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
719 factory.addStep (mk_mxe_octave_hg_tarball_step (nice = nice, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
720 jobs = build_octave_jobs, |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
721 branch = branch)) |
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
722 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
723 factory.addStep (mk_mxe_octave_compile_step (nice = nice, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
724 jobs = build_octave_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
725 opts = build_octave_opts)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
726 |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
727 factory.addStep (mk_mxe_octave_compile_step (nice = nice, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
728 jobs = build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
729 opts = build_pkg_opts)) |
4
5d2e18ee2b92
mxe-octave: don't build tarball from hg for "release" branch
John W. Eaton <jwe@octave.org>
parents:
3
diff
changeset
|
730 |
0 | 731 ## factory.addStep (mk_mxe_octave_test_step (nice = nice)) |
732 | |
733 return factory | |
734 | |
735 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
736 def mk_w32_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, configure_opts, build_octave_opts, build_pkg_opts): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
737 return mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
738 branch, mxe_branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
739 configure_opts + |
0 | 740 ["--enable-qt5", |
741 "--enable-devel-tools", | |
742 "--disable-windows-64", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
743 "--disable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
744 "--disable-fortran-int64", |
0 | 745 "--disable-system-opengl"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
746 build_octave_opts, build_pkg_opts) |
0 | 747 |
748 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
749 def mk_w64_32_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, configure_opts, build_octave_opts, build_pkg_opts): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
750 return mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
751 branch, mxe_branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
752 configure_opts + |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
753 ["--enable-qt5", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
754 "--enable-devel-tools", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
755 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
756 "--enable-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
757 "--disable-fortran-int64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
758 "--disable-system-opengl"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
759 build_octave_opts, build_pkg_opts) |
0 | 760 |
761 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
762 def mk_w64_64_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, configure_opts, build_octave_opts, build_pkg_opts): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
763 return mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
764 branch, mxe_branch, |
26
a333253a8d2e
Build native Octave for MXE cross-builds that don't create a tarball (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
25
diff
changeset
|
765 configure_opts + |
0 | 766 ["--enable-qt5", |
767 "--enable-devel-tools", | |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
768 "--enable-windows-64", |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
769 "--enable-64", |
0 | 770 "--enable-fortran-int64", |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
771 "--disable-system-opengl"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
772 build_octave_opts, build_pkg_opts) |
0 | 773 |
774 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
775 def mk_native_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, build_octave_opts, build_pkg_opts): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
776 return mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
777 branch, mxe_branch, |
0 | 778 ["--enable-native-build", |
779 "--enable-qt5", | |
780 "--enable-lib64-directory", | |
781 "--enable-pic-flag", | |
782 "--disable-devel-tools", | |
783 "--enable-system-x11-libs", | |
784 "--enable-system-fontconfig", | |
785 "--enable-system-gcc", | |
786 "gnu-linux"], | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
787 build_octave_opts, build_pkg_opts) |
0 | 788 |
789 | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
790 def mk_native_all_factory (nice, build_octave_jobs, build_pkg_jobs, branch, mxe_branch, build_octave_opts, build_pkg_opts): |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
791 return mk_mxe_octave_factory (nice, build_octave_jobs, build_pkg_jobs, |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
792 branch, mxe_branch, |
0 | 793 ["--enable-native-build", |
794 "--enable-qt5", | |
795 "--enable-lib64-directory", | |
796 "--enable-pic-flag", | |
797 "--disable-devel-tools", | |
798 "--disable-system-x11-libs", | |
799 "--disable-system-fontconfig", | |
800 "--disable-system-gcc", | |
801 "--disable-system-opengl", | |
802 "gnu-linux"], | |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
803 build_octave_opts, build_pkg_opts) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
804 |
0 | 805 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
806 w32_factory = mk_w32_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
807 "default", "default", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
808 ["--enable-system-octave"], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
809 "default-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
810 ["nsis-installer", "7z-dist"]) |
0 | 811 |
812 c["builders"].append (BuilderConfig (name = "w32-on-debian", | |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
813 workernames = ["jwe-debian-x86_64-4"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
814 factory = w32_factory)) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
815 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
816 w32_factory = mk_w32_factory (19, [1, 16], [8, 2], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
817 "release", "release", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
818 ["--disable-system-octave"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
819 "release-octave", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
820 ["nsis-installer", "7z-dist"]) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
821 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
822 c["builders"].append (BuilderConfig (name = "w32-release-on-debian", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
823 workernames = ["jwe-debian-x86_64-4"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
824 factory = w32_factory)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
825 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
826 w32_factory = mk_w32_factory (19, [1, 16], [8, 2], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
827 "stable", "release", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
828 ["--enable-system-octave"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
829 "stable-octave", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
830 ["nsis-installer", "7z-dist"]) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
831 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
832 c["builders"].append (BuilderConfig (name = "w32-stable-on-debian", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
833 workernames = ["jwe-debian-x86_64-4"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
834 factory = w32_factory)) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
835 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
836 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
837 w64_32_factory = mk_w64_32_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
838 "default", "default", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
839 ["--enable-system-octave"], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
840 "default-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
841 ["nsis-installer", "7z-dist"]) |
0 | 842 |
843 c["builders"].append (BuilderConfig (name = "w64-32-on-debian", | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
844 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
845 factory = w64_32_factory)) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
846 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
847 w64_32_factory = mk_w64_32_factory (19, [1, 16], [8, 2], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
848 "release", "release", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
849 ["--disable-system-octave"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
850 "release-octave", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
851 ["nsis-installer", "7z-dist"]) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
852 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
853 c["builders"].append (BuilderConfig (name = "w64-32-release-on-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
854 workernames = ["jwe-debian-x86_64-5"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
855 factory = w64_32_factory)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
856 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
857 w64_32_factory = mk_w64_32_factory (19, [1, 16], [8, 2], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
858 "stable", "release", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
859 ["--enable-system-octave"], |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
860 "stable-octave", |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
861 ["nsis-installer", "7z-dist"]) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
862 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
863 c["builders"].append (BuilderConfig (name = "w64-32-stable-on-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
864 workernames = ["jwe-debian-x86_64-5"], |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
865 factory = w64_32_factory)) |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
866 |
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
867 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
868 w64_64_factory = mk_w64_64_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
869 "default", "default", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
870 ["--enable-system-octave"], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
871 "default-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
872 ["nsis-installer", "7z-dist"]) |
0 | 873 |
874 c["builders"].append (BuilderConfig (name = "w64-64-on-debian", | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
875 workernames = ["jwe-debian-x86_64-5"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
876 factory = w64_64_factory)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
877 |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
878 w64_64_factory = mk_w64_64_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
879 "release", "release", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
880 ["--disable-system-octave"], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
881 "release-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
882 ["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
|
883 |
45
cfe2064ab06a
fix indentation error in previous change
John W. Eaton <jwe@octave.org>
parents:
44
diff
changeset
|
884 c["builders"].append (BuilderConfig (name = "w64-64-release-on-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
885 workernames = ["jwe-debian-x86_64-5"], |
45
cfe2064ab06a
fix indentation error in previous change
John W. Eaton <jwe@octave.org>
parents:
44
diff
changeset
|
886 factory = w64_64_factory)) |
3
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
887 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
888 w64_64_factory = mk_w64_64_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
889 "stable", "release", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
890 ["--enable-system-octave"], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
891 "stable-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
892 ["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
|
893 |
7a07ae3068be
add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents:
2
diff
changeset
|
894 c["builders"].append (BuilderConfig (name = "w64-64-stable-on-debian", |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
895 workernames = ["jwe-debian-x86_64-5"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
896 factory = w64_64_factory)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
897 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
898 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
899 native_factory = mk_native_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
900 "default", "default", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
901 "default-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
902 "tar-dist") |
0 | 903 |
904 c["builders"].append (BuilderConfig (name = "mxe-native-on-debian", | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
905 workernames = ["jwe-debian-x86_64-5"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
906 factory = native_factory)) |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
907 |
52
00b45a7930ab
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
51
diff
changeset
|
908 |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
909 native_all_factory = mk_native_all_factory (19, [1, 16], [8, 2], |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
910 "default", "default", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
911 "default-octave", |
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
912 "tar-dist") |
0 | 913 |
914 c["builders"].append (BuilderConfig (name = "mxe-native-all-on-debian", | |
55
a66ed5a63f02
redistribute builds on jwe systems and reorder lists
John W. Eaton <jwe@octave.org>
parents:
54
diff
changeset
|
915 workernames = ["jwe-debian-x86_64-5"], |
44
a472775c2952
mxe: allow different job settings for building octave+deps and pkgs+dist files
John W. Eaton <jwe@octave.org>
parents:
43
diff
changeset
|
916 factory = native_all_factory)) |
0 | 917 |
918 | |
919 ## PROJECT IDENTITY | |
920 | |
921 ## the 'title' string will appear at the top of this buildbot | |
922 ## installation's html.WebStatus home page (linked to the 'titleURL') | |
923 ## and is embedded in the title of the waterfall HTML page. | |
924 | |
925 c["title"] = "GNU Octave Buildbot" | |
926 c["titleURL"] = "https://octave.org" | |
927 | |
928 # The 'buildbotURL' string should point to the location where the buildbot's | |
929 # internal web server is visible. This typically uses the port number set in | |
930 # the 'www' entry below, but with an externally-visible host name which the | |
931 # buildbot cannot figure out without some help. | |
932 | |
48 | 933 c['buildbotURL'] = "https://buildbot.octave.org/" |
0 | 934 |
935 ## Minimalistic config to activate new web UI | |
936 | |
937 from buildbot.plugins import util | |
938 | |
939 c['www'] = { | |
5
0b956eea0df3
move master web server back to port 8010
John W. Eaton <jwe@octave.org>
parents:
4
diff
changeset
|
940 "port" : 8010, |
0 | 941 "plugins" : { "waterfall_view" : True } |
942 } | |
943 | |
15 | 944 c['www']['ui_default_config'] = { |
945 "Waterfall.scaling_waterfall": 0.02, | |
25
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
946 "Waterfall.lazy_limit_waterfall": 400, |
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
947 ## A bug makes this setting the opposite of what it appears. |
180e9db46fa3
omit old builders from waterfall view by default
John W. Eaton <jwe@octave.org>
parents:
24
diff
changeset
|
948 "Waterfall.show_old_builders": True |
15 | 949 } |
950 | |
47
614d569bb3f6
another attempt to disable remote access
John W. Eaton <jwe@octave.org>
parents:
46
diff
changeset
|
951 authz = util.Authz (allowRules = [util.AnyControlEndpointMatcher (role = "admins")], |
614d569bb3f6
another attempt to disable remote access
John W. Eaton <jwe@octave.org>
parents:
46
diff
changeset
|
952 roleMatchers = []) |
614d569bb3f6
another attempt to disable remote access
John W. Eaton <jwe@octave.org>
parents:
46
diff
changeset
|
953 c['www']['authz'] = authz |
20 | 954 |
47
614d569bb3f6
another attempt to disable remote access
John W. Eaton <jwe@octave.org>
parents:
46
diff
changeset
|
955 ##auth = util.UserPasswordAuth (octave_buildbot_config.master_id_and_pass) |
614d569bb3f6
another attempt to disable remote access
John W. Eaton <jwe@octave.org>
parents:
46
diff
changeset
|
956 ##c['www']['auth'] = auth |
30
97e41899e7cb
remove trailing whitespace from master.cfg
John W. Eaton <jwe@octave.org>
parents:
29
diff
changeset
|
957 |
0 | 958 ## DB URL |
959 | |
960 ## This specifies what database buildbot uses to store its state. You | |
961 ## can leave this at its default for all but the largest installations. | |
962 | |
963 c["db"] = { "db_url" : "sqlite:///state.sqlite" } | |
964 | |
965 ## NOTIFICATIONS | |
966 | |
967 from buildbot.plugins import reporters | |
968 | |
969 c["services"] = [] | |
970 | |
971 m = reporters.MailNotifier (fromaddr = "NO-REPLY@octave.org", | |
972 sendToInterestedUsers = False, | |
973 extraRecipients = ["octave-buildbot@gnu.org"], | |
974 mode = "failing") | |
975 c["services"].append (m) |