-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_latent.py
54 lines (43 loc) · 1.38 KB
/
test_latent.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- python -*-
# ex: set syntax=python:
from buildbot.plugins import schedulers, steps, util
VM_CPU_COUNT = 6
MAC_OS_MIN_VERSION = "10.11"
MAC_OS_SDKS_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs"
c = {}
c["change_source"] = []
c["schedulers"] = []
c["builders"] = []
platforms = [
{"name": "win", "worker": "build-win"},
{"name": "mac", "worker": "build-mac"},
{"name": "nix", "worker": "build-nix"},
]
project_name = "test_latent"
builderNames = []
for platform in platforms:
builderNames.append(project_name + "_" + platform["name"])
forceScheduler = schedulers.ForceScheduler(
name=project_name + "_force",
label="Force build",
buttonName="Force build",
builderNames=builderNames,
)
c["schedulers"].append(forceScheduler)
for platform in platforms:
factory = util.BuildFactory()
factory.addStep(
steps.ShellCommand(command=["cmake", "--help"], name="help", haltOnFailure=True)
)
factory.addStep(
steps.ShellCommand(
command=["cmake", "--version"], name="version", haltOnFailure=True
)
)
builder = util.BuilderConfig(
name=project_name + "_" + platform["name"],
workernames=[platform["worker"]],
factory=factory,
description="Make {} on {}".format(project_name, platform["name"]),
)
c["builders"].append(builder)