2.2.0 • Published 7 years ago

render-ci-matrix v2.2.0

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

render-ci-matrix

Render a CI results matrix to the terminal.

screenshot

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

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago