travis: debug foreman start

This commit is contained in:
Nolan Lawson 2018-04-10 19:12:59 -07:00
parent 1360f9fd9d
commit 5da160ce83
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ async function runMastodon () {
await exec(cmd, {cwd: mastodonDir})
}
const promise = spawn('foreman', ['start'], {cwd: mastodonDir})
const log = fs.createWriteStream('mastodon.log', {flags: 'a'})
const log = process.env.TRAVIS ? process.stdout : fs.createWriteStream('mastodon.log', {flags: 'a'})
childProc = promise.childProcess
childProc.stdout.pipe(log)
childProc.stderr.pipe(log)