1.0.2 • Published 7 years ago

appveyor-watch v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

appveyor-watch

Stream live appveyor test results of the current commit to your terminal. Exits with the proper exit code too!

screenshot

Installation

$ npm install -g appveyor-watch

Usage

$ appveyor-watch --help
Usage: appveyor-watch [DIRECTORY]

JavaScript API

const differ = require('ansi-diff-stream')
const render = require('render-ci-matrix')()
const Watch = require('appveyor-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)
})

Kudos

  • Development of this module is sponsored by the Dat Project.

Related

  • travis-watch Stream live travis test results of the current commit to your terminal!
  • ansi-diff-stream A transform stream that diffs input buffers and outputs the diff as ANSI. If you pipe this to a terminal it will update the output with minimal changes
  • render-ci-matrix Render a CI results matrix to the terminal.

License

MIT