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