Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class UnixBuild(factory.BuildFactory):
def __init__(self, source, parallel, branch=None,
test_with_PTY=False):
factory.BuildFactory.__init__(self, [source])
self.addStep(Configure(command=['./configure'] + self.configureFlags))
self.add_initial_step()

compile = ['make', self.makeTarget]
testopts = self.testFlags
Expand All @@ -151,6 +151,9 @@ class UnixBuild(factory.BuildFactory):
command=test, timeout=self.test_timeout, usePTY=test_with_PTY))
self.addStep(Clean())

def add_initial_step(self):
self.addStep(Configure(command=['./configure'] + self.configureFlags))


class UnixRefleakBuild(UnixBuild):
buildersuffix = '.refleak'
Expand All @@ -161,6 +164,9 @@ class UnixRefleakBuild(UnixBuild):
test_timeout = TEST_TIMEOUT * 10


# XXX Update this with each release
PYTHON_DEVPT_VERSION = '3.7'

class UnixInstalledBuild(factory.BuildFactory):
buildersuffix = ".installed"
configureFlags = []
Expand All @@ -174,8 +180,7 @@ class UnixInstalledBuild(factory.BuildFactory):
test_with_PTY=False):
factory.BuildFactory.__init__(self, [source])
if branch == '3.x':
# XXX Update this with each release
branch = '3.7'
branch = PYTHON_DEVPT_VERSION
installed_python = './target/bin/python%s' % branch
self.addStep(Configure(command=[
'./configure', '--prefix', '$(PWD)/target'] + self.configureFlags))
Expand Down Expand Up @@ -244,6 +249,14 @@ class NonDebugUnixBuild(UnixBuild):
configureFlags = []


class AndroidBuild(UnixBuild):
def add_initial_step(self):
self.addStep(ShellCommand(name="makesetup",
description="makesetup",
command=['bash', 'Android/makesetup'],
warnOnFailure=True))


class QuietNonDebugUnixBuild(NonDebugUnixBuild):
testFlags = "-u-audio"

Expand Down Expand Up @@ -541,6 +554,16 @@ def is_important_change(change):

# Regular builders

AndroidEnviron = {
# The development version is used to statically allocate port numbers to
# emulators. For example there is the (3.x, x86_64) emulator and the
# (maintenance version, x86_64) emulator.
'PYTHON_DEVPT_VERSION': PYTHON_DEVPT_VERSION,
'ANDROID_API': '24',
'WITH_LIBRARIES': 'libffi,ncurses,openssl,readline,sqlite',
'EMULATOR_CMD_LINE_OPTIONS': '-use-system-libs -no-window',
}

for git_url, branchname, git_branch in git_branches:
buildernames = []
dailybuildernames = []
Expand All @@ -556,6 +579,17 @@ for git_url, branchname, git_branch in git_branches:
if name.endswith("Freeze") and branchname == "2.7":
# 2.7 isn't set up for testing freezing
continue
if issubclass(buildfactory, AndroidBuild):
env = dict(AndroidEnviron)
for word in name.split():
if word in ('x86', 'x86_64', 'armv7', 'arm64'):
env['ANDROID_ARCH'] = word
break
else:
assert False, 'Android architecture is not defined'
else:
env = {}

buildername = name + " " + branchname
source = Git(repourl=git_url, branch=git_branch, timeout=3600)
p = parallel.get(worker)
Expand All @@ -578,7 +612,8 @@ for git_url, branchname, git_branch in git_branches:
),
factory=f,
tags=[branchname + stability],
locks=[cpulock.access('counting')]
locks=[cpulock.access('counting')],
env=env,
)
)
# Make sure daily builders pick up custom jobs, and don't try to run when
Expand Down