Socket
Book a DemoInstallSign in
Socket

ci-watch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-watch

Stream live CI results to your terminal!

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ci-watch

Stream live CI results from multiple environments to your terminal! Exits with the proper exit code too!

Currently supports Travis and AppVeyor, so it covers macOS, Linux and Windows.

screenshot

Installation

$ npm install -g ci-watch

Usage

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

Supported CI systems

  • Travis
  • AppVeyor

Todo:

For more, please open an issue.

JavaScript API

const differ = require('ansi-diff-stream')
const render = require('render-ci-matrix')()
const Watch = require('ci-watch')

const diff = differ()
diff.pipe(process.stdout)

const watch = new Watch(process.cwd())
watch.start()
watch.on('finish', () => {
  diff.write(render(watch.state()))
  process.exit(!watch.state.success)
})

setInterval(
  () => diff.write(render(watch.state())),
  100
)

Kudos

  • Development of this module is sponsored by the Dat Project.
  • travis-watch — Stream live Travis test results of the current commit to your terminal!
  • appveyor-watch — Stream live AppVeyor 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.

Sponsors

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!

License

MIT

FAQs

Package last updated on 10 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts