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