-
Notifications
You must be signed in to change notification settings - Fork 6
/
master.cfg
130 lines (114 loc) · 5.03 KB
/
master.cfg
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*- python -*-
# ex: set syntax=python:
__all__ = ["BuildmasterConfig"]
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.schedulers.forcesched import *
from buildbot.www.oauth2 import GitHubAuth
from buildbot.plugins import util
import config
from status import irc_status, webhook_status
#from builders.debian import debian_builder, linux_rtdist_builder
from builders.docker import docker_builder
from builders.windows import windows_builder
from builders.macosx import macosx_builder
from builders.manylinux import manylinux_builder
# Fetch list of branches from GitHub.
import urllib, json
api = urllib.request.urlopen('https://api.github.com/repos/panda3d/panda3d/branches')
branches = []
for branch in json.loads(api.read()):
branches.append(branch['name'])
BuildmasterConfig = {
"title": "Panda3D",
"titleURL": config.title_url,
"buildbotURL": config.buildbot_url,
"buildbotNetUsageData": None,
"services": [irc_status, webhook_status],
"www": {
"port": 8010,
"change_hook_dialects": {"github": True},
"auth": GitHubAuth(config.github_oauth_client_id, config.github_oauth_client_secret),
},
"builders": [
#debian_builder("sdk", "debian", "wheezy", arch="i386"),
#debian_builder("sdk", "debian", "wheezy", arch="amd64"),
windows_builder(arch="i386"),
windows_builder(arch="amd64"),
macosx_builder("10.6"),
macosx_builder("10.9"),
macosx_builder("11.0"),
docker_builder("sdk", "ubuntu", "xenial", arch="i386"),
docker_builder("sdk", "ubuntu", "xenial", arch="amd64"),
docker_builder("sdk", "ubuntu", "bionic", arch="i386"),
docker_builder("sdk", "ubuntu", "bionic", arch="amd64"),
docker_builder("sdk", "ubuntu", "focal", arch="amd64"),
docker_builder("sdk", "ubuntu", "focal", arch="arm64"),
docker_builder("sdk", "ubuntu", "jammy", arch="amd64"),
docker_builder("sdk", "ubuntu", "lunar", arch="amd64"),
docker_builder("sdk", "ubuntu", "mantic", arch="amd64"),
docker_builder("sdk", "ubuntu", "noble", arch="amd64"),
docker_builder("sdk", "ubuntu", "oracular", arch="amd64"),
manylinux_builder("manylinux1", arch="i686"),
manylinux_builder("manylinux1", arch="x86_64"),
manylinux_builder("manylinux2010", arch="i686"),
manylinux_builder("manylinux2010", arch="x86_64"),
manylinux_builder("manylinux2014", arch="x86_64"),
manylinux_builder("manylinux2014", arch="aarch64"),
#debian_builder("runtime", "debian", "wheezy", arch="i386"),
#debian_builder("runtime", "debian", "wheezy", arch="amd64"),
#docker_builder("runtime", "ubuntu", "xenial", arch="i386"),
#docker_builder("runtime", "ubuntu", "xenial", arch="amd64"),
#linux_rtdist_builder(arch="i386"),
#linux_rtdist_builder(arch="amd64"),
],
"schedulers": [
SingleBranchScheduler("devel", branch="master",
properties={'optimize': False},
builderNames=[
"sdk-bionic-amd64", "sdk-bionic-i386",
"sdk-focal-amd64",
"sdk-jammy-amd64",
"sdk-lunar-amd64",
"sdk-mantic-amd64",
"sdk-noble-amd64",
"sdk-oracular-amd64",
"sdk-windows-amd64", "sdk-windows-i386",
"manylinux1-x86_64", "manylinux1-i686",
"macosx-10.9",
], treeStableTimer=3, fileIsImportant=config.is_important),
ForceScheduler("force",
builderNames=[
"manylinux1-x86_64", "manylinux1-i686",
"manylinux2010-x86_64", "manylinux2010-i686",
"manylinux2014-x86_64", "manylinux2014-aarch64",
"sdk-xenial-amd64", "sdk-xenial-i386",
"sdk-bionic-amd64", "sdk-bionic-i386",
"sdk-focal-amd64", "sdk-focal-arm64",
"sdk-jammy-amd64",
"sdk-lunar-amd64",
"sdk-mantic-amd64",
"sdk-noble-amd64",
"sdk-oracular-amd64",
#"sdk-wheezy-amd64", "sdk-wheezy-i386",
"sdk-windows-amd64", "sdk-windows-i386",
"macosx-11.0", "macosx-10.9", "macosx-10.6",
],
codebases=[
util.CodebaseParameter(
"",
branch=ChoiceStringParameter(name="branch", label="Branch:", choices=branches, default="master"),
revision=StringParameter(name="revision", label="Revision:"),
repository=FixedParameter(name="repository"),
project=FixedParameter(name="project"),
),
],
properties=[
BooleanParameter(name="clean", label="Clean Build", default=False),
BooleanParameter(name="optimize", label="Optimized Build", default=False),
]
),
],
"workers": config.workers,
"protocols": {"pb": {"port": 9989}},
"db": {"db_url": "sqlite:///state.sqlite"},
}