From 0f9d797ea89208a63ee11005b0d9d2c94604d3b5 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 10 Apr 2018 19:43:36 -0700 Subject: [PATCH] travis: make tests less noisy --- bin/run-mastodon.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index 9629ae43..3fafe7f7 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -89,10 +89,16 @@ async function runMastodon () { cwd: mastodonDir, env: Object.assign({}, process.env, {RAILS_ENV: 'development', NODE_ENV: 'development'}) }) - const log = process.env.TRAVIS ? process.stdout : fs.createWriteStream('mastodon.log', {flags: 'a'}) + const log = fs.createWriteStream('mastodon.log', {flags: 'a'}) childProc = promise.childProcess childProc.stdout.pipe(log) childProc.stderr.pipe(log) + promise.catch(err => { + console.error('foreman start failed, see mastodon.log for details') + console.error(err) + shutdownMastodon() + process.exit(1) + }) } async function main () {