Do not write to stdout in Electron when running on win32 CI machine

This makes Electron crash on CI machine somehow.
This commit is contained in:
Cheng Zhao 2016-04-30 17:05:52 +09:00
parent 6756f8c7af
commit 8aa88067ca
3 changed files with 22 additions and 9 deletions

View file

@ -39,7 +39,6 @@ def main():
if os.environ.has_key('TARGET_ARCH'):
target_arch = os.environ['TARGET_ARCH']
is_appveyor = (os.getenv('APPVEYOR') == 'True')
is_travis = (os.getenv('TRAVIS') == 'true')
if is_travis and PLATFORM == 'linux':
print 'Setup travis CI'
@ -76,8 +75,10 @@ def main():
run_script('create-dist.py')
run_script('upload.py')
else:
if PLATFORM == 'win32':
os.environ['OUTPUT_TO_FILE'] = 'output.log'
run_script('build.py', ['-c', 'D'])
if not is_appveyor and target_arch == 'x64':
if target_arch == 'x64':
run_script('test.py', ['--ci'])

View file

@ -32,6 +32,11 @@ def main():
subprocess.check_call([atom_shell, 'spec'] + sys.argv[1:])
if os.environ.has_key('OUTPUT_TO_FILE'):
output_to_file = os.environ['OUTPUT_TO_FILE']
with open(output_to_file, 'r') as f:
print f.read()
if __name__ == '__main__':
sys.exit(main())