2.2.0 • Published 7 years ago
render-ci-matrix v2.2.0
render-ci-matrix
Render a CI results matrix to the terminal.
Usage
Use this code to create the output above:
const render = require('render-ci-matrix')()
process.stdout.write(
render({
repo: ['juliangruber', 'render-ci-results'],
build: {
id: 13,
number: 42,
startedAt: Date.now() - 1500
},
commit: {
found: true,
branch: 'master'
},
success: true,
link: 'https://travis-ci.org/juliangruber/render-ci-results/builds/13',
results: {
osx: {
foo: {
name: 'node 6',
env: 'FOO=bar',
startedAt: Date.now() - 1000,
state: 'started'
},
bar: {
name: 'ruby 1.0',
state: 'queued'
},
beep: {
name: 'php 5.2',
startedAt: Date.now() - 10000,
state: 'started'
}
},
linux: {
boop: {
name: 'golang 1.0',
state: 'queued'
}
}
}
})
)
Installation
$ npm install render-ci-matrix
Related
- 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!
- cli-spinners — Spinners for use in the terminal
License
MIT