From bec4b34385d0ed44214bffd5e236202fc120e702 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 1 Apr 2015 10:35:19 -0700 Subject: [PATCH] Log squirrel log on failures --- script/cibuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/cibuild b/script/cibuild index 08ff65c6e..4f2612ed8 100755 --- a/script/cibuild +++ b/script/cibuild @@ -90,6 +90,12 @@ cp.safeExec.bind(global, 'npm install npm --loglevel error', {cwd: path.resolve( cp.safeExec.bind(global, gruntPath + ' ci --gruntfile build/Gruntfile.coffee --stack --no-color'), ] async.series(tasks, function(error) { + if (error && process.platform === 'win32') { + var fs = require('fs'); + var squirrelLog = path.resolve(__dirname, 'build', 'node_modules', 'grunt-atom-shell-installer', 'vendor', 'SquirrelSetup.log'); + if (fs.existsSync(squirrelLog)) + console.log(fs.readFileSync(squirrelLog)); + } process.exit(error ? 1 : 0); }); })();