GithubHelp home page GithubHelp logo

aliirz / dashing-circleci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtchavez/dashing-circleci

0.0 3.0 0.0 211 KB

CircleCI Dashing Widget

HTML 16.09% Ruby 27.91% CoffeeScript 7.82% CSS 48.18%

dashing-circleci's Introduction

Dashing CircleCI Widget

A Dashing widget for CircleCI

Requirements

  1. Dashing up and running
  2. A CircleCI account
  3. CircleCI gem
  4. The contents of this repo to get you set up.

Setup

  1. Add gem 'circleci' to your dashing project Gemfile
  2. bundle install
  3. git clone [email protected]:mtchavez/dashing-circleci.git
  4. Copy weather fonts into your dashing project
mkdir -p dashing/assets/fonts
cp dashing-circleci/assets/fonts/weather.* dashing/assets/fonts
  1. Make a config directory and copy sample circleci.yml config
mkdir -p dashing/config
cp dashing-circleci/config/circleci.yml dashing/config
  1. Copy CircleCI widget into your dashing project widgets
mkdir -p dashing/widgets/circle_ci
cp -R dashing-circleci/widgets/circle_ci dashing/widgets/circle_ci
  1. Add circleci.rb job to dashing jobs
cp dashing-circleci/jobs/circleci.rb dashing/jobs
  1. Optionally copy example dashboard or use as a reference to make your own
cp dashing-circleci/dashboards/ci.erb dashing/dashboards

Config

The config/circleci.yml is used to setup the repositories you want to display. You will need to modify this file to add your own repositories as well as your CircleCI API token

token: circle_ci_token 
projects:
  - user: github_username 
    repo: repository_name
    css_id: repo-id
  - user: mtchavez
    repo: dashing-circleci
    css_id: dashing-circleci

Dashboard

To display your dashboard you can use the dashboards/ci.erb file in the repo as an example. An example dashboard for the above config would be

<title>CircleCI</title>
<div class="gridster ready">
  <ul>
    <!-- Row 1 -->
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-id="repo-id" data-view="CircleCi" data-unordered="true" data-title="Repository 1"></div>
    </li>
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-id="dashing-circleci" data-view="CircleCi" data-unordered="true" data-title="Dashing CircleCI"></div>
    </li>
  </ul>
</div>

Job

The job requires the CircleCI gem so make sure that is installed first.

The circleci job only looks at master branches for your repositories. At my current job we found all our topic and feature branches were too noisy with builds and distracted from the status of our most important branch, master.

There is also a super basic, and probably not very well done, "weather" check of your master branch. Depending on the last 10 builds of your master branch it will display a different weather icon ala Jenkins.

Currently the job runs once a minute, but you can change that to whatever fits best for you.

dashing-circleci's People

Contributors

mtchavez avatar damncabbage avatar

Watchers

Ali Raza avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.