Skip to content

Commit

Permalink
Merge pull request #8 from jobready/feature/buildbox
Browse files Browse the repository at this point in the history
migrating to buildbox
  • Loading branch information
chaitanyakuber committed Oct 13, 2014
2 parents fcf76c5 + 23b4bb3 commit 8503530
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
source "https://rubygems.org"
gemspec

gem "codeclimate-test-reporter", group: :test, require: nil
19 changes: 4 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
boolean_dsl (1.3.0)
boolean_dsl (1.4.0)
activesupport
parslet

Expand All @@ -20,29 +20,22 @@ GEM
debugger-linecache (~> 1.2)
cane (2.6.2)
parallel
codeclimate-test-reporter (0.4.1)
simplecov (>= 0.7.1, < 1.0.0)
columnize (0.8.9)
coveralls (0.7.0)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
debugger-linecache (1.2.0)
diff-lcs (1.2.5)
docile (1.1.3)
factory_girl (4.4.0)
activesupport (>= 3.0.0)
i18n (0.6.9)
json (1.8.1)
mime-types (2.3)
minitest (5.3.4)
multi_json (1.10.1)
parallel (1.0.0)
parslet (1.6.1)
blankslate (~> 2.0)
rake (10.3.2)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
Expand All @@ -56,11 +49,7 @@ GEM
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
term-ansicolor (1.3.0)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.3)
tins (1.3.0)
tzinfo (1.2.0)
thread_safe (~> 0.1)

Expand All @@ -72,7 +61,7 @@ DEPENDENCIES
bundler (~> 1.0)
byebug (~> 2.7)
cane (~> 2.6)
coveralls
codeclimate-test-reporter
factory_girl (~> 4.4)
rake (~> 10.1)
rspec (~> 2.14)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Boolean DSL

[![Code Climate](https://codeclimate.com/github/jobready/boolean_dsl.png)](https://codeclimate.com/github/jobready/boolean_dsl)
[![Build Status](https://travis-ci.org/jobready/boolean_dsl.svg)](https://travis-ci.org/jobready/boolean_dsl)
[![Test Coverage](https://codeclimate.com/github/jobready/boolean_dsl/badges/coverage.svg)](https://codeclimate.com/github/jobready/boolean_dsl)
[![Build status](https://badge.buildbox.io/adb8860e18e1f4c6e45f7744dffcc99c4fc1a44fc355a9bc24.svg)](https://buildbox.io/accounts/jobready/projects/boolean-dsl)

Boolean DSL is a simple boolean language for creating business rules

Expand Down
1 change: 0 additions & 1 deletion boolean_dsl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'cane', '~> 2.6'
s.add_development_dependency 'byebug', '~> 2.7'
s.add_development_dependency 'rake', '~> 10.1'
s.add_development_dependency 'coveralls'
s.add_dependency 'activesupport'
s.add_dependency 'parslet'

Expand Down
17 changes: 17 additions & 0 deletions scripts/buildbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e

echo '--- setting ruby version'
rbenv local 2.1.2

echo '--- bundling'
bundle install -j $(nproc) --without production --quiet

echo '--- running specs'
REVISION=https://github.com/$BUILDBOX_PROJECT_SLUG/commit/$BUILDBOX_COMMIT
if bundle exec rspec; then
echo "[Successful] $BUILDBOX_PROJECT_SLUG - Build - $BUILDBOX_BUILD_URL - Commit - $REVISION" | hipchat_room_message -t $HIPCHAT_TOKEN -r $HIPCHAT_ROOM -f "Buildbox" -c "green"
else
echo "[Failed] Build $BUILDBOX_PROJECT_SLUG - Build - $BUILDBOX_BUILD_URL - Commit - $REVISION" | hipchat_room_message -t $HIPCHAT_TOKEN -r $HIPCHAT_ROOM -f "Buildbox" -c "red"
exit 1;
fi
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
require 'simplecov'
SimpleCov.start

require 'coveralls'
Coveralls.wear!
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
SimpleCov::Formatter::HTMLFormatter
]

SimpleCov.configure do
Expand Down

0 comments on commit 8503530

Please sign in to comment.