An open API service indexing awesome lists of open source software.

https://github.com/juliangruber/travis-watch

Stream live travis test results of the current commit to your terminal!
https://github.com/juliangruber/travis-watch

ci cli dx terminal travis

Last synced: 2 months ago
JSON representation

Stream live travis test results of the current commit to your terminal!

Awesome Lists containing this project

README

        

# travis-watch [![Build Status](https://travis-ci.org/juliangruber/travis-watch.svg?branch=master)](https://travis-ci.org/juliangruber/travis-watch) [![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/travis-watch.svg)](https://greenkeeper.io/)

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

![screenshot](screenshot.png)

## Installation

```bash
$ npm install -g travis-watch
```

## Usage

```bash
$ travis-watch --help
Usage: travis-watch [DIRECTORY]
```

## Supported build environments

- Node.js
- Ruby
- PHP
- Go
- Python

For more, please [open an issue](https://github.com/juliangruber/travis-watch/issues/new).

## JavaScript API

```js
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)
})
```

## Kudos

- Development of this module is sponsored by the [Dat Project](https://datproject.org/).
- Travis is :heart:

## Related

- __[appveyor-watch](https://github.com/juliangruber/appveyor-watch)__ — Stream live AppVeyor test results of the current commit to your terminal!
- __[ci-watch](https://github.com/juliangruber/ci-watch)__ — Travis-Watch and AppVeyor-Watch combined!
- __[travis-logs](https://github.com/juliangruber/travis-logs)__ — Stream live travis logs to your terminal!
- __[ansi-diff-stream](https://github.com/mafintosh/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](https://github.com/juliangruber/render-ci-matrix)__ — Render a CI results matrix to the terminal.

## Sponsors

This module is proudly supported by my [Sponsors](https://github.com/juliangruber/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](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!

## License

MIT