travis: make tests less noisy

This commit is contained in:
Nolan Lawson 2018-04-10 19:43:36 -07:00
parent 12b903c59d
commit 0f9d797ea8
1 changed files with 7 additions and 1 deletions

View File

@ -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 () {