Commit 6131adee authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: New --sequential option for trigger_build script

parent 89512fdb
......@@ -148,7 +148,9 @@ def parseArgs(argv=None):
'server' : f'Gitlab server (default: {SERVER_URL})',
'project' : 'Project(s) to build',
'production' : 'Build production/stable version '
'(default: label built package as staging/development)'
'(default: label built package as staging/development)',
'sequential' : 'Build projects sequentially (default: build in '
'parallel',
}
parser = argparse.ArgumentParser(usage=usage, description=desc)
......@@ -160,6 +162,8 @@ def parseArgs(argv=None):
help=helps['token'])
parser.add_argument('-p', '--production', action='store_true',
help=helps['production'])
parser.add_argument('-q', '--sequential', action='store_true',
help=helps['sequential'])
return parser.parse_args(argv)
......@@ -171,7 +175,11 @@ def main(argv=None):
args = parseArgs(argv)
projects = args.project
pool = mp.Pool(len(projects))
if args.sequential: njobs = 1
else: njobs = len(projects)
pool = mp.Pool(njobs)
build = ft.partial(trigger_build,
server=args.server,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment