$ npm install travis-log-streamRead streaming travis logs, no matter if live or historic.
This will read a job's log from the travis API first, and then if it's still running also continues streaming live log output via the Pusher endpoint. It also makes sure all the log chunks will arrive in the correct order.
const logStream = require('travis-log-stream')
logStream({
jobId: process.argv[2] || '229631523',
appKey: '5df8ac576dcccf4fd076'
}).pipe(process.stdout)
$ npm install travis-log-stream
jobId: The travis job.idappKey: The travis pusher app key, get via https://apitravis-ci.org/config (see https://docs.travis-ci.com/api#external-apis)MIT