Dashing-Rails widget that display build status of project on Semaphore CI.
Add this line to your Dashing-Rails application's Gemfile:
gem 'dashing-semaphore'
And then execute:
$ bundle
Follow the following steps in order to make it work on your dashing-rails project:
-
Add the following line to your
app/assets/javascripts/dashing/widgets/index.js
file://= require semaphore
-
Add the following line to your
app/assets/stylesheets/dashing/widgets/index.css
file:*= require semaphore
-
Add the following html to your dashboard:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1"> <div data-id="project_id" data-view="Semaphore" data-unordered="true" data-title="ProjectTitle"></div> </li>
-
Run
rails g dashing:semaphore:install
-
Edit
config/initializers/dashing-semaphore.rb
with your semaphore crendentials and project name as follow:Dashing::Semaphore.configure do |config| config.auth_token = 'your_auth_token_from_semaphore' config.projects = [ { widget_id: 'project_name/branch_name' }, { 'dashing-rails' => 'dashing-rails/master' } # For example ] end
Note: the branch name is optional
Note: the paths to index files may have changed depending on your Dashing-Rails configuration.
data-id
: Like all widgets, you must include an identifier so that your jobs can update the value. It is the same that the key value of the hash inconfig/initializers/dashing-semaphore.rb
.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Full credits for this widget should go to Aleksandar Diklic.
dashing-semaphore is released under the MIT License. Developed by rastasheep. Adapted by gottfrois.