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