def get_build(self, uuid):
return self._request("/api/v1/builds/%s" % uuid, decode="json")
- async def build(self, path, repo=None, arches=None):
+ async def build(self, path, repo=None, arches=None,
+ disable_test_builds=False):
"""
Create a new build on the hub
"""
# Create a new build
build_id = await self._request("POST", "/api/v1/builds",
- upload_id=upload_id, repo=repo, arches=arches)
+ upload_id=upload_id,
+ repo=repo,
+ arches=arches,
+ disable_test_builds=disable_test_builds,
+ )
log.debug("Build creates as %s" % build_id)
help=_("Build the package(s) for the given architecture only"))
build.add_argument("--repo",
help=_("Create the build in this repository"))
+ build.add_argument("--disable-test-builds", action="store_true",
+ help=_("No test builds will be created for this build"))
build.set_defaults(func=self._build)
# check-connection
# Build all packages
for package in ns.packages:
- await hub.build(package, arches=ns.arch, repo=ns.repo)
+ await hub.build(package, arches=ns.arch, repo=ns.repo,
+ disable_test_builds=ns.disable_test_builds)
finally:
tmp.cleanup()