cosmincatalin / wercker-lametric

Small proxy application for checking Wercker project statuses and return LaMetric formatted response.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wercker no longer exists, so this repository has been archived

Wercker to LaMetric

Alt text

This small app powers the Wercker Projects Status application in the LaMetric store. The app looks up the last build and deploy results of all the projects you have access to. When checking the build status, only the master branch is taken into consideration.

Wercker is a Continuous Integration service. It exposes an API that this app uses. As a registered user, you can generate an OAuth2 token from the Wercker interface. You can then use the token when configuring the Wercker Projects Status app on your phone.

LaMatric is a company providing smart table clocks with customizable display. They expose a visual DSL through which developers can create applications.

How to set-up the app

Alt text

  • Open LaMetric app.
  • Select your device.
  • Add a new application from the store.
  • Search for Wercker.
  • Install the app.
  • Open https://app.wercker.com/#profile/tokens in your phone browser.
  • Sign in Wercker if you're not already logged in.
  • Generate a new token and copy it to clipboard.
  • Go back to the LaMetric app.
  • In the configuration options of the Wercker Projects Status app add the OAuth2 token from the clipboard
  • Add the organization or username coresponding to the token.
  • That's it, you're all set. Look further down for the different states of the display.

States

Everything is OK

This is the desired state of your projects.

Alt text

A number of runs are failing

Some of your projects have their last run failing on their master branch.

Alt text

A number of deploys are failing

Some of your builds could not be deployed.

Alt text

A number of deploys and builds are failing

This is the situation you do not want to find yourself in.

Alt text

The app is not configured

You somehow missed the steps above. Look at the How to set-up the app section.

Alt text

Some unexpected error happened

The server is not responding because of an error. There is probably nothing you can do about it. You'll just have to wait for it to get fixed. You can speed up the process if you submit an issue.

Alt text

About

Small proxy application for checking Wercker project statuses and return LaMetric formatted response.


Languages

Language:PHP 100.0%