Bug 1085620 part4: Support debug builds. r=lightsofapollo

Phone and emualtor builds depends on the environment variable B2G_DEBUG
for debug builds.

mach ci-build now has the --debug option to enable debug builds.
This commit is contained in:
Wander Lairson Costa
2014-11-26 10:11:35 -08:00
parent 906b5924a9
commit a3d3b2d96c
2 changed files with 6 additions and 1 deletions

View File

@@ -215,11 +215,13 @@ class CIBuild(object):
help='full path to hg repository to use in sub tasks')
@CommandArgument('--b2g-config',
help='(emulators/phones only) in tree build configuration directory')
@CommandArgument('--debug', action='store_true',
help='(emulators/phones only) build debug images')
@CommandArgument('--owner',
help='email address of who owns this graph')
@CommandArgument('build_task',
help='path to build task definition')
def create_ci_build(self, build_task, revision="", repository="", b2g_config="", owner=""):
def create_ci_build(self, build_task, revision="", repository="", b2g_config="", debug=False, owner=""):
# TODO handle git repos
if not repository:
repository = get_hg_url()
@@ -227,6 +229,8 @@ class CIBuild(object):
if not revision:
revision = get_latest_hg_revision(repository)
debug = 1 if debug else 0
build_parameters = {
'docker_image': docker_image,
'repository': repository,