annotate master.cfg @ 3:7a07ae3068be

add mxe-octave 'release' builds and rebalance worker loads
author John W. Eaton <jwe@octave.org>
date Thu, 28 Jun 2018 18:20:12 +0000
parents f77e7e92cc95
children 5d2e18ee2b92
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
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
100 all_default_octave_builders.append ("gcc-7-debian") # jwe 1
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
101 all_default_octave_builders.append ("gcc-7-lto-debian") # jwe 2
0
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
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
104 all_default_octave_builders.append ("no-extras-debian") # jwe 1
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 all_default_octave_builders.append ("clang-3.9-debian") # mtmx
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
106 all_default_octave_builders.append ("clang-4.0-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
107 all_default_octave_builders.append ("clang-5.0-debian") # jwe 3
0
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 = [];
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
112 all_stable_octave_builders.append ("stable-gcc-7-debian") # jwe 1
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
113 all_stable_octave_builders.append ("stable-gcc-7-lto-debian") # jwe 2
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114 all_stable_octave_builders.append ("stable-gcc-fedora") # das
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
115 all_stable_octave_builders.append ("stable-no-extras-debian") # jwe 1
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
116 all_stable_octave_builders.append ("stable-clang-4.0-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
117 all_stable_octave_builders.append ("stable-clang-5.0-debian") # jwe 3
0
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 = [];
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
121 all_mxe_octave_builders.append ("w32-on-debian") # jwe 3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
122 all_mxe_octave_builders.append ("w64-32-on-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
123 all_mxe_octave_builders.append ("w64-64-on-debian") # jwe 2
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
124 all_mxe_octave_builders.append ("w32-release-on-debian") # jwe 3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
125 all_mxe_octave_builders.append ("w64-32-release-on-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
126 all_mxe_octave_builders.append ("w64-64-release-on-debian") # jwe 2
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
127 all_mxe_octave_builders.append ("w32-stable-on-debian") # jwe 3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
128 all_mxe_octave_builders.append ("w64-32-stable-on-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
129 all_mxe_octave_builders.append ("w64-64-stable-on-debian") # jwe 2
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
130 all_mxe_octave_builders.append ("mxe-native-on-debian") # jwe 0
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
131 all_mxe_octave_builders.append ("mxe-native-all-on-debian") # jwe 2
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 c["schedulers"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135 c["schedulers"].append (SingleBranchScheduler (name = "default octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136 change_filter = octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 treeStableTimer = 5*60,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138 builderNames = all_default_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140 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
141
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142 c["schedulers"].append (SingleBranchScheduler (name = "stable octave",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 change_filter = octave_stable_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 treeStableTimer = 5*60,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 builderNames = all_stable_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 c["schedulers"].append (ForceScheduler (name = "force_stable_octave", builderNames = all_stable_octave_builders))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 builderNames = ["w32-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 hour = 0))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
157 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
158 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
159 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160 builderNames = ["w64-32-on-debian"],
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
161 hour = 0))
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 builderNames = ["w64-64-on-debian"],
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
168 hour = 0))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
169
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
170 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
171 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-release",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
172 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
173 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
174 builderNames = ["w32-release-on-debian"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
175 hour = 8))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
176
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
177 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
178 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-release",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
179 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
180 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
181 builderNames = ["w64-32-release-on-debian"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
182 hour = 6))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
183
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
184 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
185 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-release",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
186 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
187 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
188 builderNames = ["w64-64-release-on-debian"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
189 hour = 6))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
190
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
191 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
192 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w32-stable",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
193 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
194 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
195 builderNames = ["w32-stable-on-debian"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
196 hour = 16))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
197
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
198 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
199 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-32-stable",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
200 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
201 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
202 builderNames = ["w64-32-stable-on-debian"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
203 hour = 12))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
204
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
205 ## Here, branch is the mxe-octave branch.
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
206 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-w64-64-stable",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
207 branch = "default",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
208 change_filter = mxe_octave_default_filter,
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
209 builderNames = ["w64-64-stable-on-debian"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210 hour = 12))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216 builderNames = ["mxe-native-on-debian"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
217 hour = 18))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 ## Here, branch is the mxe-octave branch.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220 c["schedulers"].append (timed.Nightly (name = "periodic mxe-octave-native-all",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221 branch = "default",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
222 change_filter = mxe_octave_default_filter,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
223 builderNames = ["mxe-native-all-on-debian"],
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
224 hour = 18))
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
225
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
226 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
227
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
228 ## BUILDERS
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 ## The 'builders' list defines the Builders, which tell Buildbot how
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
231 ## to perform a build: what steps, and which workers can execute them.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
232 ## Note that any particular build will only take place on one worker.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
234 from buildbot.process.factory import BuildFactory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
235 from buildbot.steps.source.mercurial import Mercurial
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
236 from buildbot.steps.shell import ShellCommand
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
237 from buildbot.steps.shell import Configure
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
238 from buildbot.steps.shell import Compile
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
239 from buildbot.steps.shell import Test
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
240
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
241 ## Steps we may use in more than one build factory.
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 def build_cmd_list (cmd, nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
244 cmd_list = []
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 if nice != 0:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247 cmd_list.extend (["nice", "-n", str (nice)])
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 if isinstance (cmd, list):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250 cmd_list.extend (cmd)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
251 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
252 cmd_list.append (cmd)
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 if isinstance (opts, list):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
255 cmd_list.extend (opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
256 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
257 cmd_list.append (opts)
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 return cmd_list
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
260
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
261
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
262 build_env = { "PATH" : "${HOME}/bin:${PATH}" };
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
264 def mk_octave_hg_update_step (repo, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
265 return Mercurial (repourl = repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
266 defaultBranch = branch, branchType = "inrepo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
267 workdir = "src", mode = "full", method = "fresh",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
268 haltOnFailure = True)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
269
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 def mk_octave_bootstrap_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
271 boot_cmd = build_cmd_list ("./bootstrap", nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
272 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
273 description = "bootstrap")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
274
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275 sh_rm_build_dir = ShellCommand (command = ["rm", "-rf", "build"], workdir = ".",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 env = build_env, description = "clean build dir")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
277
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
278 sh_mk_build_dir = ShellCommand (command = ["mkdir", "build"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279 description = "create build dir")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281 def mk_octave_configure_step (nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282 conf_cmd = build_cmd_list ("../src/configure", nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283 return Configure (command = conf_cmd, workdir = "build", env = build_env)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
284
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
285
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
286 def mk_octave_compile_step (nice = 0, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
287 make_cmd = build_cmd_list (["make", "V=1"], nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
288 return Compile (command = make_cmd, workdir = "build", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
289 warningPattern = ":[0-9][0-9]*:[0-9][0-9]*:warning: ")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
290
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
291 import re
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
292 from buildbot.process import logobserver
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
293 from buildbot.process.results import SUCCESS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
294 from buildbot.process.results import FAILURE
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
295 from buildbot.process.results import WARNINGS
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 class octave_test_observer (logobserver.LogLineObserver):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
298
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
299 def __init__ (self, warningPattern):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
300 logobserver.LogLineObserver.__init__ (self)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
301 if warningPattern:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
302 self.warningPattern = re.compile (warningPattern)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
303 else:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
304 self.warningPattern = None
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
305 self.rc = SUCCESS
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
306 self.total = 0
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
307 self.passed = 0
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
308 self.failed = 0
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
309 self.warnings = 0
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
310 self.summary_found = False
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
311 self.complete = False
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
312
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
313 summaryRe = re.compile (r"^Summary: *$")
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
314 testsRe = re.compile (r"^ *(PASS|FAIL|REGRESSION|XFAIL|SKIP)[^\d]*(\d+)")
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
315
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
316 def outLineReceived (self, line):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
317 if self.warningPattern.match (line):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
318 self.warnings += 1
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
319
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
320 if not self.summary_found:
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
321 mo = self.summaryRe.search (line)
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
322 if mo:
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
323 self.summary_found = True
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
324 return
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
325
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
326 mo = self.testsRe.search (line)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
327 if mo:
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
328 typ = mo.group(1)
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
329 num = int (mo.group(2))
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
330 self.total += num
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
331 if typ == "PASS":
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
332 self.passed += num
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
333 if typ == "FAIL" or typ == "REGRESSION":
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
334 if num > 0:
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
335 self.rc = FAILURE
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
336 self.failed += num
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
337
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
338
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 class octave_test (Test):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
340
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
341 def __init__ (self, *args, **kwargs):
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
342 Test.__init__ (self, *args, **kwargs)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
343 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
344 self.addLogObserver ('stdio', self.observer)
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
345
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346 def evaluateCommand (self, cmd):
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
347 if self.observer.total:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
348 passed = self.observer.total - self.observer.failed
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
349
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
350 self.setTestResults (total = self.observer.total,
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
351 failed = self.observer.failed,
2
f77e7e92cc95 recognize test status
John W. Eaton <jwe@octave.org>
parents: 1
diff changeset
352 passed = self.observer.passed,
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
353 warnings = self.observer.warnings)
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
354
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
355 rc = self.observer.rc
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
356 if rc == SUCCESS and self.observer.warnings:
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
357 rc = WARNINGS
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
358 return rc
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
359
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
360
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 def mk_octave_test_step (nice = 0, xvfb = True):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362 if xvfb:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
363 cmd = ["xvfb-run", "-a", "-s", "-screen 0 640x480x24"]
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
364 else:
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
365 cmd = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
366 cmd.extend (["make", "V=1", "check"])
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
367 test_cmd = build_cmd_list (cmd, nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
368 return octave_test (command = test_cmd, workdir = "build", env = build_env)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
369
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
370
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
371 def mk_octave_factory (nice, configure_opts, compile_opts, branch, xvfb = True):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372 factory = BuildFactory ()
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
373
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
374 factory.addStep (mk_octave_hg_update_step (octave_hg_repo, branch))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
375 factory.addStep (mk_octave_bootstrap_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376 factory.addStep (sh_rm_build_dir)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
377 factory.addStep (sh_mk_build_dir)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
378 factory.addStep (mk_octave_configure_step (nice = nice, opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
379 factory.addStep (mk_octave_compile_step (nice = nice, opts = compile_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
380 factory.addStep (mk_octave_test_step (nice = nice, xvfb = xvfb))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
381
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
382 return factory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
383
1
97e7b7963dc9 make test log filtering work again
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
384
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
385 def mk_gcc_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
386 return mk_octave_factory (nice, [], compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
387
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
388
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
389 def mk_gcc_4_9_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
390 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
391 ["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
392 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
393
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
394
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 ## Default build.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
396 def mk_gcc_5_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
397 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
398 ["CC=gcc-5", "CXX=g++-5", "F77=gfortran-5"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
399 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
400
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
402 def mk_gcc_6_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
403 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
404 ["CC=gcc-6", "CXX=g++-6", "F77=gfortran-6"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
405 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
406
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
407
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
408 def mk_gcc_7_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414 def mk_gcc_7_lto_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 ["CC=gcc-7", "CXX=g++-7", "F77=gfortran-7",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 "CFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 "FFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420 "LDFLAGS=-flto=4",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
421 "NM=gcc-nm-7", "AR=gcc-ar-7", "RANLIB=gcc-ranlib-7"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
422 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
423
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
424
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
425 def mk_gcc_lto_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
426 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
427 ["CFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
428 "CXXFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
429 "FFLAGS=-O2 -flto=4 -ffat-lto-objects",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
430 "LDFLAGS=-flto=4",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
431 "NM=gcc-nm", "AR=gcc-ar", "RANLIB=gcc-ranlib"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
432 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 no_extras = ["--disable-docs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
436 "--disable-fftw-threads",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
437 "--disable-java",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
438 "--disable-jit",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
439 "--disable-openmp",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
440 "--disable-readline",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
441 "--without-osmesa",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
442 "--without-amd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
443 "--without-arpack",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
444 "--without-bz2",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
445 "--without-camd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
446 "--without-ccolamd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
447 "--without-cholmod",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
448 "--without-colamd",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
449 "--without-curl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
450 "--without-cxsparse",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
451 "--without-fftw3",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
452 "--without-fftw3f",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
453 "--without-fltk",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
454 "--without-framework-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
455 "--without-glpk",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
456 "--without-hdf5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
457 "--without-klu",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
458 "--without-sundials-ida",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459 "--without-sundials_nvecserial",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
460 "--without-magick",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 "--without-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
462 "--without-openssl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 "--without-portaudio",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
464 "--without-qhull",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465 "--without-qrupdate",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 "--without-qscintilla",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
467 "--without-qt",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
468 "--without-sndfile",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
469 "--without-sundials_ida",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
470 "--without-sundials_nvecserial",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
471 "--without-umfpack",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
472 "--without-x",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
473 "--without-z"]
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
474
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
475 def mk_no_extras_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
476 return mk_octave_factory (nice, no_extras, compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
477
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 def mk_clang_3_8_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
480 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
481 ["CC=clang-3.8", "CXX=clang++-3.8"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
482 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
483
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 def mk_clang_3_9_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
486 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
487 ["CC=clang-3.9", "CXX=clang++-3.9"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
488 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
489
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
490 def mk_clang_4_0_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
491 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
492 ["CC=clang-4.0", "CXX=clang++-4.0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
493 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
494
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
495 def mk_clang_5_0_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
496 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
497 ["CC=clang-5.0", "CXX=clang++-5.0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
498 compile_opts, branch)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
499
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
500 def mk_clang_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
501 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
502 ["CC=clang", "CXX=clang++"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
503 compile_opts, branch)
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 def mk_clang_osx_factory (nice, compile_opts, branch):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
506 ## The linker does search /usr/local/lib, but it does so after
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
507 ## searching /usr/lib. That selects a readline library that is not
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
508 ## fully compatible with GNU readline.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
509 return mk_octave_factory (nice,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
510 ["CC=clang",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
511 "CXX=clang++",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
512 "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
513 "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
514 "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
515 "--enable-link-all-dependencies",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
516 "--with-x=no",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
517 "--without-osmesa",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
518 "--with-blas=openblas"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
519 compile_opts, branch, xvfb = False)
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 from buildbot.config import BuilderConfig
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
522
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
523 c["builders"] = []
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 = "gcc-4.9-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
526 # workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
527 # factory = mk_gcc_4_9_factory (19, "-j8", "default")))
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 = "gcc-5-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
530 # workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
531 # factory = mk_gcc_5_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 = "gcc-6-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_gcc_6_factory (10, "-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 = "gcc-7-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
538 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
539 factory = mk_gcc_7_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-gcc-7-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
542 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
543 factory = mk_gcc_7_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 = "gcc-7-lto-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_gcc_7_lto_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-gcc-7-lto-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_gcc_7_lto_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 = "gcc-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_gcc_factory (0, "-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 c["builders"].append (BuilderConfig (name = "stable-gcc-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
558 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
559 factory = mk_gcc_factory (0, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
560
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
561 c["builders"].append (BuilderConfig (name = "gcc-lto-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
562 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
563 factory = mk_gcc_lto_factory (10, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
564
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
565 c["builders"].append (BuilderConfig (name = "no-extras-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
566 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
567 factory = mk_no_extras_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
568
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
569 c["builders"].append (BuilderConfig (name = "stable-no-extras-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
570 workernames = ["jwe-debian-x86_64-1"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
571 factory = mk_no_extras_factory (19, "-j8", "stable")))
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 ##c["builders"].append (BuilderConfig (name = "clang-3.8-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
574 ## workernames = ["jwe-debian-x86_64-2"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
575 ## factory = mk_clang_3_8_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
576
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
577 c["builders"].append (BuilderConfig (name = "clang-3.9-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
578 workernames = ["mtmx-debian-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
579 factory = mk_clang_3_9_factory (19, "-j2", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
580
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
581 c["builders"].append (BuilderConfig (name = "clang-4.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
582 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
583 factory = mk_clang_4_0_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
584
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
585 c["builders"].append (BuilderConfig (name = "stable-clang-4.0-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
586 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
587 factory = mk_clang_4_0_factory (19, "-j8", "stable")))
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 c["builders"].append (BuilderConfig (name = "clang-5.0-debian",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
590 workernames = ["jwe-debian-x86_64-3"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
591 factory = mk_clang_5_0_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
592
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
593 c["builders"].append (BuilderConfig (name = "stable-clang-5.0-debian",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
594 workernames = ["jwe-debian-x86_64-3"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
595 factory = mk_clang_5_0_factory (19, "-j8", "stable")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
596
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
597 c["builders"].append (BuilderConfig (name = "clang-fedora",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
598 workernames = ["das_fc25-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
599 factory = mk_clang_factory (19, "-j8", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
600
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
601
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
602 c["builders"].append (BuilderConfig (name = "clang-osx",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
603 workernames = ["epfl-elcapitan-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
604 factory = mk_clang_osx_factory (0, "-j4", "default")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
605
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
606 c["builders"].append (BuilderConfig (name = "stable-clang-osx",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
607 workernames = ["epfl-elcapitan-x86_64"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
608 factory = mk_clang_osx_factory (0, "-j4", "stable")))
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
611 def mk_mxe_octave_hg_update_step (repo):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
612 return Mercurial (repourl = repo,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
613 defaultBranch = "default", branchType = "inrepo",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
614 workdir = "src", mode = "full", method = "fresh",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
615 haltOnFailure = True)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
618 def mk_mxe_octave_bootstrap_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
619 boot_cmd = build_cmd_list ("autoconf", nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
620 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
621 description = "bootstrap")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
622
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
623
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
624 def mk_mxe_octave_configure_step (nice = 0, branch = "default", opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
625 conf_cmd = build_cmd_list (["./configure",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
626 "--with-pkg-dir=../../mxe-pkg-src",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
627 "--with-ccache", "--enable-octave=" + branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
628 "--enable-binary-packages"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
629 nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
630 return Configure (command = conf_cmd, workdir = "src", env = build_env)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
631
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
632
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
633 def mk_mxe_octave_clean_step (nice = 0):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
634 boot_cmd = build_cmd_list (["make", "clean"], nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
635 return ShellCommand (command = boot_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
636 description = "clean")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
637
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 ## Timeout is large for these steps because mxe-octave currently only
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
640 ## prints a status update for each package, not detailed output from
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
641 ## make. The way the dependencies currently work, making
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
642 ## 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
643 ## and some of those make take significant time to build, especially
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
644 ## 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
645 ## has a high nice value.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
646
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
647 def mk_mxe_octave_hg_tarball_step (nice = 0, jobs = 8, branch = "default"):
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
648
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
649 hg_octave_branch = branch
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
650 if branch == "release":
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
651 hg_octave_branch = "stable"
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
652
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
653 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs), "hg-octave-dist", "hg-octave-branch=" + hg_octave_branch],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
654 nice = nice)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
655 return Compile (command = make_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
656 timeout = 14400)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
659 def mk_mxe_octave_compile_step (nice = 0, jobs = 8, opts = []):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
660 make_cmd = build_cmd_list (["make", "JOBS=" + str (jobs)],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
661 nice = nice, opts = opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
662 return Compile (command = make_cmd, workdir = "src", env = build_env,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
663 timeout = 14400)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
664
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
665
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
666 def mk_mxe_octave_factory (nice, jobs, branch, configure_opts, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
667 factory = BuildFactory ()
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
668
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
669 factory.addStep (mk_mxe_octave_hg_update_step (mxe_octave_hg_repo))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
670 factory.addStep (mk_mxe_octave_bootstrap_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
671 ## Must run configure to ensure clean target will work, then must
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
672 ## run configure again to recreate makefile.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
673 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
674 opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
675 factory.addStep (mk_mxe_octave_clean_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
676 factory.addStep (mk_mxe_octave_configure_step (nice = nice, branch = branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
677 opts = configure_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
678 ## Create a tarball file from an hg checkout, then build from that.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
679 ## This also builds all dependencies for Octave, so it can take a
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
680 ## while. Using ccache should help us significantly since we are
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
681 ## typically rebuilding the same sets of packages repeatedly.
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
682
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
683 factory.addStep (mk_mxe_octave_hg_tarball_step (nice = nice, jobs = jobs,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
684 branch = branch))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
685 factory.addStep (mk_mxe_octave_compile_step (nice = nice, jobs = jobs,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
686 opts = compile_opts))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
687 ## factory.addStep (mk_mxe_octave_test_step (nice = nice))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
688
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
689 return factory
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
690
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
691
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
692 def mk_w32_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
693 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
694 ["--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
695 "--enable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
696 "--disable-windows-64",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
697 "--disable-64",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
698 "--disable-fortran-int64",
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
699 "--disable-system-opengl"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
700 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
703 def mk_w64_32_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
704 return mk_mxe_octave_factory (nice, jobs, branch,
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
705 ["--enable-qt5",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
706 "--enable-devel-tools",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
707 "--enable-windows-64",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
708 "--enable-64",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
709 "--disable-fortran-int64",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
710 "--disable-system-opengl"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
711 compile_opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
712
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 def mk_w64_64_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
715 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
716 ["--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
717 "--enable-devel-tools",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
718 "--enable-windows-64",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
719 "--enable-64",
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
720 "--enable-fortran-int64",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
721 "--disable-system-opengl"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
722 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
725 def mk_native_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
726 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
727 ["--enable-native-build",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
728 "--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
729 "--enable-lib64-directory",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
730 "--enable-pic-flag",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
731 "--disable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
732 "--enable-system-x11-libs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
733 "--enable-system-fontconfig",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
734 "--enable-system-gcc",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
735 "gnu-linux"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
736 compile_opts)
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
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
739 def mk_native_all_factory (nice, jobs, branch, compile_opts):
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
740 return mk_mxe_octave_factory (nice, jobs, branch,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
741 ["--enable-native-build",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
742 "--enable-qt5",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
743 "--enable-lib64-directory",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
744 "--enable-pic-flag",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
745 "--disable-devel-tools",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
746 "--disable-system-x11-libs",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
747 "--disable-system-fontconfig",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
748 "--disable-system-gcc",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
749 "--disable-system-opengl",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
750 "gnu-linux"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
751 compile_opts)
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
752
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
753
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
754 c["builders"].append (BuilderConfig (name = "w32-on-debian",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
755 workernames = ["jwe-debian-x86_64-3"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
756 factory = mk_w32_factory (19, 8, "default", "nsis-installer")))
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 c["builders"].append (BuilderConfig (name = "w64-32-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
759 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
760 factory = mk_w64_32_factory (19, 8, "default", "nsis-installer")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
761
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
762 c["builders"].append (BuilderConfig (name = "w64-64-on-debian",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
763 workernames = ["jwe-debian-x86_64-2"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
764 factory = mk_w64_64_factory (19, 8, "default", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
765
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
766
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
767 c["builders"].append (BuilderConfig (name = "w32-release-on-debian",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
768 workernames = ["jwe-debian-x86_64-3"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
769 factory = mk_w32_factory (19, 8, "release", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
770
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
771 c["builders"].append (BuilderConfig (name = "w64-32-release-on-debian",
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
772 workernames = ["jwe-debian-x86_64-0"],
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
773 factory = mk_w64_32_factory (19, 8, "release", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
774
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
775 c["builders"].append (BuilderConfig (name = "w64-64-release-on-debian",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
776 workernames = ["jwe-debian-x86_64-2"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
777 factory = mk_w64_64_factory (19, 8, "release", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
778
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
779
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
780 c["builders"].append (BuilderConfig (name = "w32-stable-on-debian",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
781 workernames = ["jwe-debian-x86_64-3"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
782 factory = mk_w32_factory (19, 8, "stable", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
783
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
784 c["builders"].append (BuilderConfig (name = "w64-32-stable-on-debian",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
785 workernames = ["jwe-debian-x86_64-0"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
786 factory = mk_w64_32_factory (19, 8, "stable", "nsis-installer")))
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
787
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
788 c["builders"].append (BuilderConfig (name = "w64-64-stable-on-debian",
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
789 workernames = ["jwe-debian-x86_64-2"],
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
790 factory = mk_w64_64_factory (19, 8, "stable", "nsis-installer")))
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
791
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
792
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
793 c["builders"].append (BuilderConfig (name = "mxe-native-on-debian",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
794 workernames = ["jwe-debian-x86_64-0"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
795 factory = mk_native_factory (19, 8, "default", "tar-dist")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
796
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
797 c["builders"].append (BuilderConfig (name = "mxe-native-all-on-debian",
3
7a07ae3068be add mxe-octave 'release' builds and rebalance worker loads
John W. Eaton <jwe@octave.org>
parents: 2
diff changeset
798 workernames = ["jwe-debian-x86_64-2"],
0
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
799 factory = mk_native_all_factory (19, 8, "default", "tar-dist")))
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
800
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
801
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
802 ## PROJECT IDENTITY
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
803
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
804 ## the 'title' string will appear at the top of this buildbot
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
805 ## installation's html.WebStatus home page (linked to the 'titleURL')
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
806 ## and is embedded in the title of the waterfall HTML page.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
807
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
808 c["title"] = "GNU Octave Buildbot"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
809 c["titleURL"] = "https://octave.org"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
810
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
811 # The 'buildbotURL' string should point to the location where the buildbot's
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
812 # 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
813 # 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
814 # buildbot cannot figure out without some help.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
815
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
816 c['buildbotURL'] = "http://buildbot.octave.org:8011/"
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
817
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
818 ## Minimalistic config to activate new web UI
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
819
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
820 from buildbot.plugins import util
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
821
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
822 c['www'] = {
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
823 "port" : 8011,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
824 "auth" : util.UserPasswordAuth ({"octave" : "8avete$t$"}),
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
825 "plugins" : { "waterfall_view" : True }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
826 }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
827
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
828 ## DB URL
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
829
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
830 ## This specifies what database buildbot uses to store its state. You
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
831 ## can leave this at its default for all but the largest installations.
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
832
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
833 c["db"] = { "db_url" : "sqlite:///state.sqlite" }
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
834
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
835 ## NOTIFICATIONS
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
836
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
837 from buildbot.plugins import reporters
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
838
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
839 c["services"] = []
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
840
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
841 m = reporters.MailNotifier (fromaddr = "NO-REPLY@octave.org",
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
842 sendToInterestedUsers = False,
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
843 extraRecipients = ["octave-buildbot@gnu.org"],
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
844 mode = "failing")
4ad92f00bca5 initial commit
John W. Eaton <jwe@octave.org>
parents:
diff changeset
845 c["services"].append (m)