JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
preview
src
test/components
.babelrc
.eslintrc.yml
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
client.js
package.json
yarn.lock

README.md

Mozaïk travis widgets

License Travis CI NPM version Dependencies Coverage Status widget count

This branch contains code for the version compatible with Mozaïk v2, if you're looking for v1, please use mozaik-1 branch.

Demo

You can see a live demo of the widgets here

Install

  • Install extension:

    npm install -S @mozaik/ext-travis

    or using yarn

    yarn add @mozaik/ext-travis
  • Register client api by adding to dashboard server.js:

    //
    Mozaik.registerApi('travis', require('@mozaik/ext-travis/client'))
  • Register widgets by adding to dashboard src/index.js:

    import { Registry } from '@mozaik/ui'
    import travis from '@mozaik/ext-travis'
    //
    Registry.addExtensions({
        travis,
    })

Widgets

Travis Repository

travis repository

Display travis repo infos

parameters

key required description
owner yes repo owner
repository yes repo name

usage

# config.yml
dashboards:
- #
  widgets:
  - extension:  travis
    widget:     Repository
    owner:      plouc
    repository: mozaik
    columns:    1
    rows:       1
    x:          0
    y:          0

Travis Build history

travis build history

Display travis repo build history

parameters

key required description
owner yes repo owner
repository yes repo name

usage

# config.yml
dashboards:
- #
  widgets:
  - extension:  travis
    widget:     BuildHistory
    owner:      plouc
    repository: mozaik
    columns:    1
    rows:       1
    x:          0
    y:          0

Travis Build histogram

travis build histogram

Display travis repo build histogram (duration / build number / status)

parameters

key required description
owner yes repo owner
repository yes repo name

usage

# config.yml
dashboards:
- #
  widgets:
  - extension:  travis
    widget:     BuildHistogram
    owner:      plouc
    repository: mozaik
    columns:    1
    rows:       1
    x:          0
    y:          0