Stream live travis test results of the current commit to your terminal!
Stream live travis test results of the current commit to your terminal. Exits with the proper exit code too!
$ npm install -g travis-watch
$ travis-watch --help
Usage: travis-watch [DIRECTORY]
For more, please open an issue.
const differ = require('ansi-diff-stream')
const render = require('render-ci-matrix')()
const Watch = require('travis-watch')
const diff = differ()
diff.pipe(process.stdout)
const watch = new Watch(process.cwd())
watch.start()
setInterval(
() => diff.write(render(watch.state)),
100
)
watch.on('finish', () => {
diff.write(render(watch.state))
process.exit(!watch.state.success)
})
This module is proudly supported by my Sponsors!
Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my Patreon. Not sure how much of my modules you're using? Try feross/thanks!
MIT