Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 5610926

Browse files
committed
Merge pull request #25 from dhuseby/add_dragonfly_buildbot
adds support for dragonflybsd and openbsd buildbot
2 parents 84126fd + a95b85d commit 5610926

File tree

1 file changed

+41
-25
lines changed

1 file changed

+41
-25
lines changed

master/master.cfg

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@ auto_platforms_prod = [
138138
"bitrig-64-opt",
139139
"linux-musl-64-opt",
140140
"freebsd10_32-1",
141-
"freebsd10_64-1"
141+
"freebsd10_64-1",
142+
"dragonflybsd-64-opt",
143+
"openbsd-64-opt"
142144
]
143145

144146
try_platforms_prod = ["linux", "win-gnu-32", "win-gnu-64", "mac"]
145147
snap_platforms_prod = ["linux", "win-gnu-32", "win-gnu-64", "mac", "bitrig-64",
146-
"freebsd10_32-1", "freebsd10_64-1"]
148+
"freebsd10_32-1", "freebsd10_64-1", "dragonflybsd-64-opt",
149+
"openbsd-64-opt"]
147150
dist_platforms_prod = ["linux", "win-gnu-32", "win-gnu-64", "win-msvc-32", "win-msvc-64", "mac"]
148151
cargo_platforms_prod = ["linux-32", "linux-64", "mac-32", "mac-64", "win-gnu-32",
149152
"win-gnu-64", "win-msvc-32", "win-msvc-64", "bitrig-64"]
@@ -167,12 +170,15 @@ auto_platforms_dev = [
167170
"bitrig-64-opt",
168171
"linux-musl-64-opt",
169172
"freebsd10_32-1",
170-
"freebsd10_64-1"
173+
"freebsd10_64-1",
174+
"dragonflybsd-64-opt",
175+
"openbsd-64-opt"
171176
]
172177

173178
try_platforms_dev = ["linux", "win-gnu-32", "win-gnu-64"]
174179
snap_platforms_dev = ["linux", "win-gnu-32", "win-gnu-64", "bitrig-64",
175-
"freebsd10_32-1", "freebsd10_64-1"]
180+
"freebsd10_32-1", "freebsd10_64-1", "dragonflybsd-64-opt",
181+
"openbsd-64-opt"]
176182
dist_platforms_dev = ["linux", "win-gnu-32", "win-gnu-64", "win-msvc-32", "win-msvc-64"]
177183
cargo_platforms_dev = ["linux-32", "linux-64", "win-gnu-32", "win-gnu-64",
178184
"bitrig-64", "win-msvc-32", "win-msvc-64"]
@@ -197,7 +203,9 @@ nogate_builders = [
197203
"auto-bitrig-64-opt",
198204
"auto-linux-musl-64-opt",
199205
"auto-freebsd10_32-1",
200-
"auto-freebsd10_64-1"
206+
"auto-freebsd10_64-1",
207+
"auto-dragonflybsd-64-opt",
208+
"auto-openbsd-64-opt"
201209
]
202210
dist_nogate_platforms = [
203211
"win-msvc-32",
@@ -230,6 +238,10 @@ def all_platform_hosts(platform):
230238
return ["x86_64-pc-windows-msvc"]
231239
elif "bitrig-64" in platform:
232240
return ["x86_64-unknown-bitrig"]
241+
elif "dragonflybsd-64" in platform:
242+
return ["x86_64-unknown-dragonfly"]
243+
elif "openbsd-64" in platform:
244+
return ["x86_64-unknown-openbsd"]
233245
else:
234246
return None
235247

@@ -277,6 +289,12 @@ def auto_platform_triple(p):
277289
if "bitrig-64" in p:
278290
return "x86_64-unknown-bitrig"
279291

292+
if "dragonfly-64" in p:
293+
return "x86_64-unknown-dragonfly"
294+
295+
if "openbsd-64" in p:
296+
return "x86_64-unknown-openbsd"
297+
280298
def auto_platform_build(p):
281299
return auto_platform_triple(p)
282300

@@ -317,7 +335,7 @@ for line in open("slave-list.txt"):
317335
keypair_name=keypair_name,
318336
#security_name=security_name,
319337
security_name="rust-non-vpc-slave",
320-
build_wait_timeout=build_wait_timeout,
338+
build_wait_timeout=build_wait_timeout,
321339
# notify_on_missing=['[email protected]'],
322340
max_builds=int(ext['max_builds']),
323341
tags = { 'Name': env + "-slave-" + name })
@@ -331,7 +349,7 @@ for line in open("slave-list.txt"):
331349
dist_slaves.append(slave)
332350

333351
# "special" slaves are those we are _not_ putting in the auto pool.
334-
if 'special' not in ext:
352+
if 'special' not in ext:
335353
auto_slaves.append(slave)
336354

337355
c['slaves'].append(slave)
@@ -687,7 +705,7 @@ class CommandEnv(object):
687705
if "msvc" in props["buildername"]:
688706
env["MSVC"] = "1"
689707

690-
if "valgrind" in props and props["valgrind"] == True:
708+
if "valgrind" in props and props["valgrind"] == True:
691709
env["RUST_THREADS"]="1"
692710
env["RUST_RT_TEST_THREADS"]="1"
693711

@@ -730,7 +748,7 @@ class ConfigCommand(object):
730748
"docs", "optimize", "optimize-tests",
731749
"optimize-cxx", "optimize-llvm",
732750
"debug", "pax-flags", "clang",
733-
"inject-std-version", "llvm-static-stdcpp"]
751+
"inject-std-version", "llvm-static-stdcpp"]
734752
if "cargo" in props:
735753
s = "./configure --local-rust-root=$PWD/rustc"
736754
else:
@@ -969,7 +987,7 @@ def make_and_check_buildfactory(check, android, windows, parallel):
969987
f.addStep(Compile(env=CommandEnv(),
970988
haltOnFailure=True,
971989
flunkOnFailure=True,
972-
timeout=compile_timeout,
990+
timeout=compile_timeout,
973991
interruptSignal="TERM",
974992
command=command,
975993
workdir=BUILD_WORKDIR))
@@ -1008,7 +1026,7 @@ def cargo_buildfactory():
10081026

10091027
f.addStep(ShellCommand(env=CommandEnv(),
10101028
command=["sh", ".travis.install.deps.sh"],
1011-
workdir=WORKDIR))
1029+
workdir=WORKDIR))
10121030

10131031
f.addStep(Configure(env=CommandEnv(),
10141032
haltOnFailure=True,
@@ -1091,8 +1109,7 @@ def cargo_nightly_buildfactory(platform, host):
10911109

10921110
def snap3_buildfactory(platform):
10931111
global s3_addy
1094-
f = make_and_check_buildfactory(True, False, "win" in platform,
1095-
False)
1112+
f = make_and_check_buildfactory(True, False, "win" in platform, False)
10961113
hosts = all_platform_hosts(platform)
10971114
if hosts != None:
10981115
for host in hosts:
@@ -1149,12 +1166,11 @@ def cargo_distsnap_trigger_buildfactory(scheduler_names):
11491166
def distsnap_buildfactory(platform, channel_label):
11501167
global s3_addy
11511168
# Don't run check because distcheck is going to do it all again
1152-
f = make_and_check_buildfactory(False, False, "win" in platform,
1153-
False)
1169+
f = make_and_check_buildfactory(False, False, "win" in platform, False)
11541170
f.addStep(Compile(env=CommandEnv(),
11551171
name="distcheck",
11561172
command=[MakeCommand(), "distcheck"],
1157-
timeout=compile_timeout,
1173+
timeout=compile_timeout,
11581174
interruptSignal="TERM",
11591175
workdir=BUILD_WORKDIR))
11601176

@@ -1534,8 +1550,8 @@ for p in snap_platforms:
15341550
"branch":"snap-stage3",
15351551
"hosts": "all",
15361552
"valgrind": False,
1537-
"inject-std-version": False,
1538-
"llvm-static-stdcpp": p == 'linux',
1553+
"inject-std-version": False,
1554+
"llvm-static-stdcpp": p == 'linux',
15391555
"check": True},
15401556
factory=snap3_buildfactory(p)))
15411557

@@ -1551,7 +1567,7 @@ for p in dist_platforms:
15511567
"build": auto_platform_build(p),
15521568
"valgrind": False,
15531569
"check": True,
1554-
"llvm-static-stdcpp": p == 'linux',
1570+
"llvm-static-stdcpp": p == 'linux',
15551571
"release-channel": "nightly"},
15561572
nextSlave=nextSlave,
15571573
slavenames=platform_dist_slaves(p),
@@ -1579,7 +1595,7 @@ for p in dist_platforms:
15791595
"build": auto_platform_build(p),
15801596
"valgrind": False,
15811597
"check": True,
1582-
"llvm-static-stdcpp": p == 'linux',
1598+
"llvm-static-stdcpp": p == 'linux',
15831599
"release-channel": "beta"},
15841600
nextSlave=nextSlave,
15851601
slavenames=platform_dist_slaves(p),
@@ -1607,7 +1623,7 @@ for p in dist_platforms:
16071623
"build": auto_platform_build(p),
16081624
"valgrind": False,
16091625
"check": True,
1610-
"llvm-static-stdcpp": p == 'linux',
1626+
"llvm-static-stdcpp": p == 'linux',
16111627
"release-channel": "stable"},
16121628
nextSlave=nextSlave,
16131629
slavenames=platform_dist_slaves(p),
@@ -1700,8 +1716,8 @@ for platform in cargo_platforms:
17001716
"branch":"auto-cargo",
17011717
"verbose": True,
17021718
"cargo": True,
1703-
"bits": bits,
1704-
"build": triple},
1719+
"bits": bits,
1720+
"build": triple},
17051721
slavenames=slaves,
17061722
factory=cargo_buildfactory()))
17071723

@@ -1759,8 +1775,8 @@ c['status'].append(html.WebStatus(
17591775

17601776
from buildbot.status import words
17611777
c['status'].append(words.IRC(host="irc.mozilla.org",
1762-
port=6697,
1763-
useSSL=True,
1778+
port=6697,
1779+
useSSL=True,
17641780
nick="rust-buildbot",
17651781
channels=["#rust-bots"]))
17661782

0 commit comments

Comments
 (0)