Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ertrzyiks/dashing-wercker


https://github.com/ertrzyiks/dashing-wercker

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Dashing Wercker widget

A [Dashing](http://github.com/shopify/dashing) widget for [Wercker](http://wercker.com)

![](/screenshots/screenshot_widget.png?raw=true)

Version with multiple builds on single widget can be found here: https://github.com/ertrzyiks/dashing-wercker-list

## Requirements

1. [Dashing](http://github.com/shopify/dashing)
2. A [Wercker](http://wercker.com) account
3. The contents of this repo

## Setup

1. `git clone [email protected]:ertrzyiks/dashing-wercker.git`
2. Copy Wercker logo to your assets

```
mkdir -p dashing/assets/images
cp dashing-wercker/assets/images/wercker_logo_shield_black.png dashing/assets/images
```
3. Copy `Wercker` widget into your dashing project widgets

```
mkdir -p dashing/widgets/wercker
cp -R dashing-wercker-list/widgets/wercker dashing/widgets/wercker
```
4. Add `wercker.rb` job to dashing jobs

```
cp dashing-wercker/jobs/wercker.rb dashing/jobs
```

## Config

There is config array on the top of jobs/wercker.rb:

```
projects = [
{ :widget_id => 'wercker_project_1', :user => 'YOUR_USER', :application => 'YOUR_APPLICATION', :branch => 'master' },
{ :widget_id => 'wercker_project_2', :user => 'YOUR_USER', :application => 'YOUR_APPLICATION', :branch => 'development' }
]
```

Fill it with Wercker application informations and choose branch.

[Generate token](https://app.wercker.com/#profile/tokens) and expose it in `WERCKER_AUTH_TOKEN` environment variable.

## Dashboard

To display your dashboard you can use the `dashboards/wercker.erb` as example:

```html








```