annotate master.cfg @ 61:10c1848313c6

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