Override $OUT in gcb build. (#456)

This prevents a copy from the builder container's /out to /workspace/out/sanitizer. Should hopefully fix ffmpeg's disk space issues.
This commit is contained in:
Oliver Chang 2017-03-14 13:54:19 -07:00 committed by GitHub
parent e5b4484450
commit a46254e93e
1 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,7 @@ def get_build_steps(project_yaml):
]
for sanitizer in project_yaml['sanitizers']:
env = CONFIGURATIONS["sanitizer-" + sanitizer]
env = CONFIGURATIONS["sanitizer-" + sanitizer][:]
out = '/workspace/out/' + sanitizer
stamped_name = name + '-' + sanitizer + '-' + ts
zip_file = stamped_name + '.zip'
@ -105,6 +105,8 @@ def get_build_steps(project_yaml):
srcmap_url = get_signed_url('/{0}/{1}/{2}'.format(
UPLOAD_BUCKET, name, stamped_srcmap_file))
env.append('OUT=' + out)
build_steps.extend([
# compile
{'name': image,
@ -112,7 +114,7 @@ def get_build_steps(project_yaml):
'args': [
'bash',
'-c',
'cd /src/{1} && compile && mkdir -p {0} && cp -Rv /out/* {0}/'.format(out, name),
'cd /src/{1} && mkdir -p {0} && compile'.format(out, name),
],
},
# zip binaries