annotate master.cfg @ 21:58667d78ead7

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