annotate master.cfg @ 1:97e7b7963dc9

make test log filtering work again
author John W. Eaton <jwe@octave.org>
date Tue, 12 Jun 2018 21:14:47 +0000
parents 4ad92f00bca5
children f77e7e92cc95
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 ## Not in hg archive because it contains password and system configuration info.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 import octave_buildbot_config
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 c["workers"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 for worker, info in octave_buildbot_config.workers.iteritems ():
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 c["workers"].append (Worker (worker, info["pass"], max_builds = info["max_builds"]))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 ## 'protocols' contains information about protocols which master will
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 ## use for communicating with workers. You must define at least 'port'
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 ## option that workers could connect to your master with this protocol.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 ## 'port' must match the value configured into the workers (with
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 ## their --master option)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 c["protocols"] = { "pb" : { "port" : 9990 }}
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 ## SOURCES
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 ## The main mercurial repository server. This machines pings the
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 ## PBChangeSource. The workers should pull from it, to make
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 ## sure they are in sync.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 octave_hg_repo = "https://hg.savannah.gnu.org/hgweb/octave"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 ## NOTE: We need this second URL for the Octave sources because
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 ## of a bug in buildbot that won't allow two hg poller instances
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 ## for the same URL. If that were possible, then we could have
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 ## one URL for both the stable and default branches.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 stable_octave_hg_repo = "http://hg.octave.org/octave"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 mxe_octave_hg_repo = "http://hg.octave.org/mxe-octave"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 ## CHANGESOURCES
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 ## the 'change_source' setting tells the buildmaster how it should
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 ## find out about source code changes. Here we point to the buildbot
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 ## clone of Octave.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 from buildbot.changes.hgpoller import HgPoller
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 c["change_source"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 c["change_source"].append (HgPoller (project = "octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 repourl = octave_hg_repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 workdir = "octave-hg-repo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 pollinterval = 5*60))
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 c["change_source"].append (HgPoller (project = "stable octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 branch = "stable",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 repourl = stable_octave_hg_repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 workdir = "stable-octave-hg-repo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 pollinterval = 5*60))
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"].append (HgPoller (project = "mxe-octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 repourl = mxe_octave_hg_repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74 workdir = "mxe-octave-hg-repo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 pollinterval = 15*60))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 ## FILTERS
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 from buildbot.changes import filter
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 octave_default_filter = filter.ChangeFilter (project = "octave", branch = "default")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83 octave_stable_filter = filter.ChangeFilter (project = "stable octave", branch = "stable")
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 mxe_octave_default_filter = filter.ChangeFilter (project = "mxe-octave", branch = "default")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 ## SCHEDULERS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 ## Configure the Schedulers, which decide how to react to incoming
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 ## changes.
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.schedulers.basic import SingleBranchScheduler
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 from buildbot.schedulers.forcesched import ForceScheduler
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 from buildbot.schedulers import timed
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 all_default_octave_builders = [];
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 #all_default_octave_builders.append ("gcc-4.9-debian")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 #all_default_octave_builders.append ("gcc-5-debian")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 all_default_octave_builders.append ("gcc-6-debian") # mtmx
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 all_default_octave_builders.append ("gcc-7-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 all_default_octave_builders.append ("gcc-7-lto-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 all_default_octave_builders.append ("gcc-fedora") # das
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 all_default_octave_builders.append ("gcc-lto-fedora") # das
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 all_default_octave_builders.append ("no-extras-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 all_default_octave_builders.append ("clang-3.9-debian") # mtmx
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 all_default_octave_builders.append ("clang-4.0-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 all_default_octave_builders.append ("clang-5.0-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 all_default_octave_builders.append ("clang-fedora") # das
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 all_default_octave_builders.append ("clang-osx") # simone
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 all_stable_octave_builders = [];
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 all_stable_octave_builders.append ("stable-gcc-7-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 all_stable_octave_builders.append ("stable-gcc-7-lto-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114 all_stable_octave_builders.append ("stable-gcc-fedora") # das
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115 all_stable_octave_builders.append ("stable-no-extras-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 all_stable_octave_builders.append ("stable-clang-4.0-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 all_stable_octave_builders.append ("stable-clang-5.0-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 all_stable_octave_builders.append ("stable-clang-osx") # simone
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
120 all_mxe_octave_builders = [];
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 all_mxe_octave_builders.append ("w32-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 all_mxe_octave_builders.append ("w64-32-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 all_mxe_octave_builders.append ("w64-64-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124 all_mxe_octave_builders.append ("w32-stable-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 all_mxe_octave_builders.append ("w64-32-stable-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126 all_mxe_octave_builders.append ("mxe-native-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127 all_mxe_octave_builders.append ("mxe-native-all-on-debian") # jwe
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129 c["schedulers"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
130
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
131 c["schedulers"].append (SingleBranchScheduler (name = "default octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132 change_filter = octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 treeStableTimer = 5*60,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134 builderNames = all_default_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136 c["schedulers"].append (ForceScheduler (name = "force_default_octave", builderNames = all_default_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138 c["schedulers"].append (SingleBranchScheduler (name = "stable octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 change_filter = octave_stable_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140 treeStableTimer = 5*60,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 builderNames = all_stable_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 c["schedulers"].append (ForceScheduler (name = "force_stable_octave", builderNames = all_stable_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 builderNames = ["w32-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150 hour = 0))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 builderNames = ["w64-32-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
157 hour = 6))
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 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 builderNames = ["w64-64-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 hour = 12))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 builderNames = ["mxe-native-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 hour = 18))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native-all",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177 builderNames = ["mxe-native-all-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178 hour = 0))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-stable",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
184 builderNames = ["w32-stable-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
185 hour = 8))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
187 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-stable",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191 builderNames = ["w64-32-stable-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
192 hour = 16))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 c["schedulers"].append (ForceScheduler (name = "force_mxe_octave", builderNames = all_mxe_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
195
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
196 ## BUILDERS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
197
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
198 ## The 'builders' list defines the Builders, which tell Buildbot how
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
199 ## to perform a build: what steps, and which workers can execute them.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
200 ## Note that any particular build will only take place on one worker.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
201
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202 from buildbot.process.factory import BuildFactory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 from buildbot.steps.source.mercurial import Mercurial
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204 from buildbot.steps.shell import ShellCommand
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
205 from buildbot.steps.shell import Configure
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
206 from buildbot.steps.shell import Compile
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207 from buildbot.steps.shell import Test
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 ## Steps we may use in more than one build factory.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211 def build_cmd_list (cmd, nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 cmd_list = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 if nice != 0:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215 cmd_list.extend (["nice", "-n", str (nice)])
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
217 if isinstance (cmd, list):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 cmd_list.extend (cmd)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220 cmd_list.append (cmd)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
222 if isinstance (opts, list):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
223 cmd_list.extend (opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
224 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
225 cmd_list.append (opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
226
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
227 return cmd_list
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
228
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
229
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
230 build_env = { "PATH" : "${HOME}/bin:${PATH}" };
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 def mk_octave_hg_update_step (repo, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233 return Mercurial (repourl = repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
234 defaultBranch = branch, branchType = "inrepo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
235 workdir = "src", mode = "full", method = "fresh",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
236 haltOnFailure = True)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
237
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
238 def mk_octave_bootstrap_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
239 boot_cmd = build_cmd_list ("./bootstrap", nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
240 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
241 description = "bootstrap")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
242
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
243 sh_rm_build_dir = ShellCommand (command = ["rm", "-rf", "build"], workdir = ".",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
244 env = build_env, description = "clean build dir")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
245
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
246 sh_mk_build_dir = ShellCommand (command = ["mkdir", "build"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247 description = "create build dir")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
248
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
249 def mk_octave_configure_step (nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250 conf_cmd = build_cmd_list ("../src/configure", nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
251 return Configure (command = conf_cmd, workdir = "build", env = build_env)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
254 def mk_octave_compile_step (nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
255 make_cmd = build_cmd_list (["make", "V=1"], nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
256 return Compile (command = make_cmd, workdir = "build", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
257 warningPattern = ":[0-9][0-9]*:[0-9][0-9]*:warning: ")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
258
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
259 import re
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
260 from buildbot.process import logobserver
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
261 from buildbot.process.results import SUCCESS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
262 from buildbot.process.results import FAILURE
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263 from buildbot.process.results import WARNINGS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
264
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
265 class octave_test_observer (logobserver.LogLineObserver):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
266
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
267 def __init__ (self, warningPattern):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
268 logobserver.LogLineObserver.__init__ (self)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
269 if warningPattern:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
270 self.warningPattern = re.compile (warningPattern)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
271 else:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
272 self.warningPattern = None
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
273 self.rc = SUCCESS
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
274 self.total = 0
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
275 self.failed = 0
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
276 self.warnings = 0
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
277 self.complete = False
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
278
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
279 testsRe = re.compile (r"^ (PASS|FAIL|REGRESSION|XFAIL|SKIP).*(\d+)")
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
280
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
281 def outLineReceived (self, line):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
282 if self.warningPattern.match (line):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
283 self.warnings += 1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
284 mo = self.testsRe.search (line)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
285 if mo:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
286 type = mo.group(1)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
287 count = int (mo.group(2))
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
288 self.total += num
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
289 if type == "FAIL" or type == "REGRESSION":
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
290 if count > 0:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
291 self.rc = FAILURE
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
292 self.failed += count
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
293
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
294
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
295 class octave_test (Test):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
296
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
297 def __init__ (self, *args, **kwargs):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
298 Test.__init__ (self, *args, **kwargs)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
299 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
300 self.addLogObserver ('stdio', self.observer)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
301
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
302 def evaluateCommand (self, cmd):
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
303 if self.observer.total:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
304 passed = self.observer.total - self.observer.failed
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
305
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
306 self.setTestResults (total = self.observer.total,
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
307 failed = self.observer.failed,
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
308 passed = passed,
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
309 warnings = self.observer.warnings)
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
311 rc = self.observer.rc
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
312 if rc == SUCCESS and self.observer.warnings:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
313 rc = WARNINGS
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
314 return rc
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
316
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
317 def mk_octave_test_step (nice = 0, xvfb = True):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
318 if xvfb:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
319 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"]
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
321 cmd = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
322 cmd.extend (["make", "V=1", "check"])
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
323 test_cmd = build_cmd_list (cmd, nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
324 return octave_test (command = test_cmd, workdir = "build", env = build_env)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
325
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
326
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
327 def mk_octave_factory (nice, configure_opts, compile_opts, branch, xvfb = True):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
328 factory = BuildFactory ()
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
329
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
330 factory.addStep (mk_octave_hg_update_step (octave_hg_repo, branch))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
331 factory.addStep (mk_octave_bootstrap_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
332 factory.addStep (sh_rm_build_dir)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 factory.addStep (sh_mk_build_dir)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 factory.addStep (mk_octave_configure_step (nice = nice, opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335 factory.addStep (mk_octave_compile_step (nice = nice, opts = compile_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
336 factory.addStep (mk_octave_test_step (nice = nice, xvfb = xvfb))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
338 return factory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
340
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
341 def mk_gcc_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342 return mk_octave_factory (nice, [], compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
344
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
345 def mk_gcc_4_9_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
347 ["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
348 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
349
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
350
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
351 ## Default build.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
352 def mk_gcc_5_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
353 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
354 ["CC=gcc-5", "CXX=g++-5", "F77=gfortran-5"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
355 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
356
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
357
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
358 def mk_gcc_6_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
359 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360 ["CC=gcc-6", "CXX=g++-6", "F77=gfortran-6"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
363
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
364 def mk_gcc_7_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
365 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
366 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
367 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
368
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
369
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
370 def mk_gcc_7_lto_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
371 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
373 "CFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
374 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
375 "FFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376 "LDFLAGS=-flto=4",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
377 "NM=gcc-nm-7", "AR=gcc-ar-7", "RANLIB=gcc-ranlib-7"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
378 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
379
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
380
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
381 def mk_gcc_lto_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
382 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
383 ["CFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
384 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
385 "FFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
386 "LDFLAGS=-flto=4",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
387 "NM=gcc-nm", "AR=gcc-ar", "RANLIB=gcc-ranlib"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
388 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
389
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
390
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
391 no_extras = ["--disable-docs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
392 "--disable-fftw-threads",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
393 "--disable-java",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
394 "--disable-jit",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 "--disable-openmp",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
396 "--disable-readline",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
397 "--without-osmesa",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
398 "--without-amd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
399 "--without-arpack",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
400 "--without-bz2",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401 "--without-camd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
402 "--without-ccolamd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
403 "--without-cholmod",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
404 "--without-colamd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
405 "--without-curl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
406 "--without-cxsparse",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
407 "--without-fftw3",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
408 "--without-fftw3f",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 "--without-fltk",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 "--without-framework-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411 "--without-glpk",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412 "--without-hdf5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413 "--without-klu",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414 "--without-sundials-ida",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 "--without-sundials_nvecserial",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 "--without-magick",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 "--without-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418 "--without-openssl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 "--without-portaudio",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420 "--without-qhull",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
421 "--without-qrupdate",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
422 "--without-qscintilla",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
423 "--without-qt",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
424 "--without-sndfile",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
425 "--without-sundials_ida",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
426 "--without-sundials_nvecserial",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
427 "--without-umfpack",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
428 "--without-x",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
429 "--without-z"]
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
430
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
431 def mk_no_extras_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
432 return mk_octave_factory (nice, no_extras, compile_opts, branch)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
435 def mk_clang_3_8_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
436 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
437 ["CC=clang-3.8", "CXX=clang++-3.8"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
438 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
439
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
440
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
441 def mk_clang_3_9_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
442 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
443 ["CC=clang-3.9", "CXX=clang++-3.9"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
444 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
445
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
446 def mk_clang_4_0_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=clang-4.0", "CXX=clang++-4.0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
449 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
450
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
451 def mk_clang_5_0_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
452 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
453 ["CC=clang-5.0", "CXX=clang++-5.0"],
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 def mk_clang_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
457 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
458 ["CC=clang", "CXX=clang++"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
460
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 def mk_clang_osx_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
462 ## The linker does search /usr/local/lib, but it does so after
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 ## searching /usr/lib. That selects a readline library that is not
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
464 ## fully compatible with GNU readline.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 ["CC=clang",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
467 "CXX=clang++",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
468 "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
469 "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
470 "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
471 "--enable-link-all-dependencies",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
472 "--with-x=no",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
473 "--without-osmesa",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
474 "--with-blas=openblas"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
475 compile_opts, branch, xvfb = False)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
476
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
477 from buildbot.config import BuilderConfig
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
478
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
479 c["builders"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
480
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
481 #c["builders"].append (BuilderConfig (name = "gcc-4.9-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
482 # workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
483 # factory = mk_gcc_4_9_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
484
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
485 #c["builders"].append (BuilderConfig (name = "gcc-5-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
486 # workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
487 # factory = mk_gcc_5_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
488
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
489 c["builders"].append (BuilderConfig (name = "gcc-6-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
490 workernames = ["mtmx-debian-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
491 factory = mk_gcc_6_factory (10, "-j2", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
492
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
493 c["builders"].append (BuilderConfig (name = "gcc-7-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
494 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
495 factory = mk_gcc_7_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
496
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
497 c["builders"].append (BuilderConfig (name = "stable-gcc-7-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
498 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
499 factory = mk_gcc_7_factory (19, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
500
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
501 c["builders"].append (BuilderConfig (name = "gcc-7-lto-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
502 workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
503 factory = mk_gcc_7_lto_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
504
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
505 c["builders"].append (BuilderConfig (name = "stable-gcc-7-lto-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
506 workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
507 factory = mk_gcc_7_lto_factory (19, "-j8", "stable")))
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 c["builders"].append (BuilderConfig (name = "gcc-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
510 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
511 factory = mk_gcc_factory (0, "-j8", "default")))
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 c["builders"].append (BuilderConfig (name = "stable-gcc-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
514 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
515 factory = mk_gcc_factory (0, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
516
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
517 c["builders"].append (BuilderConfig (name = "gcc-lto-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
518 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
519 factory = mk_gcc_lto_factory (10, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
520
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
521 c["builders"].append (BuilderConfig (name = "no-extras-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
522 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
523 factory = mk_no_extras_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
524
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
525 c["builders"].append (BuilderConfig (name = "stable-no-extras-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
526 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
527 factory = mk_no_extras_factory (19, "-j8", "stable")))
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 ##c["builders"].append (BuilderConfig (name = "clang-3.8-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
530 ## workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
531 ## factory = mk_clang_3_8_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
532
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
533 c["builders"].append (BuilderConfig (name = "clang-3.9-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
534 workernames = ["mtmx-debian-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
535 factory = mk_clang_3_9_factory (19, "-j2", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
536
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
537 c["builders"].append (BuilderConfig (name = "clang-4.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
538 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
539 factory = mk_clang_4_0_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
540
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
541 c["builders"].append (BuilderConfig (name = "stable-clang-4.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
542 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
543 factory = mk_clang_4_0_factory (19, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
544
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
545 c["builders"].append (BuilderConfig (name = "clang-5.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
546 workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
547 factory = mk_clang_5_0_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
548
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
549 c["builders"].append (BuilderConfig (name = "stable-clang-5.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
550 workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
551 factory = mk_clang_5_0_factory (19, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
552
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
553 c["builders"].append (BuilderConfig (name = "clang-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
554 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
555 factory = mk_clang_factory (19, "-j8", "default")))
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
558 c["builders"].append (BuilderConfig (name = "clang-osx",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
559 workernames = ["epfl-elcapitan-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
560 factory = mk_clang_osx_factory (0, "-j4", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
561
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
562 c["builders"].append (BuilderConfig (name = "stable-clang-osx",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
563 workernames = ["epfl-elcapitan-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
564 factory = mk_clang_osx_factory (0, "-j4", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
565
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 def mk_mxe_octave_hg_update_step (repo):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
568 return Mercurial (repourl = repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
569 defaultBranch = "default", branchType = "inrepo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
570 workdir = "src", mode = "full", method = "fresh",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
571 haltOnFailure = True)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
572
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
573
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
574 def mk_mxe_octave_bootstrap_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
575 boot_cmd = build_cmd_list ("autoconf", nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
576 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
577 description = "bootstrap")
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
580 def mk_mxe_octave_configure_step (nice = 0, branch = "default", opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
581 conf_cmd = build_cmd_list (["./configure",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
582 "--with-pkg-dir=../../mxe-pkg-src",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
583 "--with-ccache", "--enable-octave=" + branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
584 "--enable-binary-packages"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
585 nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
586 return Configure (command = conf_cmd, workdir = "src", env = build_env)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
587
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
588
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
589 def mk_mxe_octave_clean_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
590 boot_cmd = build_cmd_list (["make", "clean"], nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
591 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
592 description = "clean")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
593
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 ## Timeout is large for these steps because mxe-octave currently only
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
596 ## prints a status update for each package, not detailed output from
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
597 ## make. The way the dependencies currently work, making
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
598 ## 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
599 ## and some of those make take significant time to build, especially
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
600 ## 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
601 ## has a high nice value.
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 def mk_mxe_octave_hg_tarball_step (nice = 0, jobs = 8, branch = "default"):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
604 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs), "hg-octave-dist", "hg-octave-branch=" + branch],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
605 nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
606 return Compile (command = make_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
607 timeout = 14400)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
608
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
609
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
610 def mk_mxe_octave_compile_step (nice = 0, jobs = 8, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
611 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs)],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
612 nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
613 return Compile (command = make_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
614 timeout = 14400)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
615
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
616
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
617 def mk_mxe_octave_factory (nice, jobs, branch, configure_opts, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
618 factory = BuildFactory ()
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
619
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
620 factory.addStep (mk_mxe_octave_hg_update_step (mxe_octave_hg_repo))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
621 factory.addStep (mk_mxe_octave_bootstrap_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
622 ## Must run configure to ensure clean target will work, then must
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
623 ## run configure again to recreate makefile.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
624 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
625 opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
626 factory.addStep (mk_mxe_octave_clean_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
627 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
628 opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
629 ## Create a tarball file from an hg checkout, then build from that.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
630 ## This also builds all dependencies for Octave, so it can take a
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
631 ## while. Using ccache should help us significantly since we are
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
632 ## typically rebuilding the same sets of packages repeatedly.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
633 factory.addStep (mk_mxe_octave_hg_tarball_step (nice = nice, jobs = jobs,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
634 branch = branch))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
635 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
636 opts = compile_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
637 ## factory.addStep (mk_mxe_octave_test_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
638
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
639 return factory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
640
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
641
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
642 def mk_w32_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
643 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
644 ["--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
645 "--enable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
646 "--disable-windows-64",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
647 "--disable-system-opengl"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
648 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
651 def mk_w64_32_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
652 configure_opts = ["--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
653 "--enable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
654 "--disable-system-opengl"]
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
655 if branch == "stable":
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
656 configure_opts.extend (["--disable-64"])
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
657
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
658 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
659 configure_opts,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
660 compile_opts)
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_w64_64_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
664 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
665 ["--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
666 "--enable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
667 "--enable-fortran-int64",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
668 "--disable-system-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
669 "--enable-64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
670 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
673 def mk_native_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
674 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
675 ["--enable-native-build",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
676 "--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
677 "--enable-lib64-directory",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
678 "--enable-pic-flag",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
679 "--disable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
680 "--enable-system-x11-libs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
681 "--enable-system-fontconfig",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
682 "--enable-system-gcc",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
683 "gnu-linux"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
684 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
687 def mk_native_all_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
688 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
689 ["--enable-native-build",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
690 "--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
691 "--enable-lib64-directory",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
692 "--enable-pic-flag",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
693 "--disable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
694 "--disable-system-x11-libs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
695 "--disable-system-fontconfig",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
696 "--disable-system-gcc",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
697 "--disable-system-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
698 "gnu-linux"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
699 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
702 c["builders"].append (BuilderConfig (name = "w32-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
703 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
704 factory = mk_w32_factory (19, 8, "default", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
705
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
706 c["builders"].append (BuilderConfig (name = "w64-32-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
707 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
708 factory = mk_w64_32_factory (19, 8, "default", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
709
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
710 c["builders"].append (BuilderConfig (name = "w64-64-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
711 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
712 factory = mk_w64_64_factory (19, 8, "default", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
713
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
714
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
715 c["builders"].append (BuilderConfig (name = "mxe-native-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
716 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
717 factory = mk_native_factory (19, 8, "default", "tar-dist")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
718
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
719 c["builders"].append (BuilderConfig (name = "mxe-native-all-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
720 workernames = ["jwe-debian-x86_64-3"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
721 factory = mk_native_all_factory (19, 8, "default", "tar-dist")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
722
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
723
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
724 c["builders"].append (BuilderConfig (name = "w32-stable-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
725 workernames = ["jwe-debian-x86_64-3"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
726 factory = mk_w32_factory (19, 8, "stable", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
727
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
728 c["builders"].append (BuilderConfig (name = "w64-32-stable-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
729 workernames = ["jwe-debian-x86_64-3"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
730 factory = mk_w64_32_factory (19, 8, "stable", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
731
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
732 ## PROJECT IDENTITY
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 ## the 'title' string will appear at the top of this buildbot
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
735 ## installation's html.WebStatus home page (linked to the 'titleURL')
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
736 ## and is embedded in the title of the waterfall HTML page.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
737
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
738 c["title"] = "GNU Octave Buildbot"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
739 c["titleURL"] = "https://octave.org"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
740
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
741 # The 'buildbotURL' string should point to the location where the buildbot's
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
742 # 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
743 # 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
744 # buildbot cannot figure out without some help.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
745
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
746 c['buildbotURL'] = "http://buildbot.octave.org:8011/"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
747
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
748 ## Minimalistic config to activate new web UI
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
749
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
750 from buildbot.plugins import util
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
751
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
752 c['www'] = {
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
753 "port" : 8011,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
754 "auth" : util.UserPasswordAuth ({"octave" : "8avete$t$"}),
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
755 "plugins" : { "waterfall_view" : True }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
756 }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
757
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
758 ## DB URL
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
759
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
760 ## This specifies what database buildbot uses to store its state. You
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
761 ## can leave this at its default for all but the largest installations.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
762
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
763 c["db"] = { "db_url" : "sqlite:///state.sqlite" }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
764
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
765 ## NOTIFICATIONS
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 from buildbot.plugins import reporters
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
768
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
769 c["services"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
770
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
771 m = reporters.MailNotifier (fromaddr = "NO-REPLY@octave.org",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
772 sendToInterestedUsers = False,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
773 extraRecipients = ["octave-buildbot@gnu.org"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
774 mode = "failing")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
775 c["services"].append (m)