diff --git a/.gitignore b/.gitignore index 25c3136..0ff6a79 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ spec/dummy/db/*.sqlite3-journal spec/dummy/log/*.log spec/dummy/tmp/ spec/dummy/.sass-cache +coverage/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..222078e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: ruby +rvm: + - 1.9.3 + - 2.0.0 diff --git a/Gemfile.lock b/Gemfile.lock index 488f281..af32eb6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -45,6 +45,12 @@ GEM capybara-webkit (1.0.0) capybara (~> 2.0, >= 2.0.2) json + coveralls (0.7.0) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor diff-lcs (1.2.4) erubis (2.7.0) factory_girl (4.2.0) @@ -95,6 +101,8 @@ GEM rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (10.1.0) + rest-client (1.6.7) + mime-types (>= 1.16) rspec-core (2.14.5) rspec-expectations (2.14.2) diff-lcs (>= 1.1.3, < 2.0) @@ -111,6 +119,10 @@ GEM railties (>= 4.0.0.beta, < 5.0) sass (>= 3.1.10) sprockets-rails (~> 2.0.0) + simplecov (0.7.1) + multi_json (~> 1.0) + simplecov-html (~> 0.7.1) + simplecov-html (0.7.1) sprockets (2.10.0) hike (~> 1.2) multi_json (~> 1.0) @@ -120,10 +132,13 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (~> 2.8) + term-ansicolor (1.2.2) + tins (~> 0.8) thor (0.18.1) thread_safe (0.1.3) atomic tilt (1.4.1) + tins (0.12.0) treetop (1.4.15) polyglot polyglot (>= 0.3.1) @@ -137,6 +152,7 @@ PLATFORMS DEPENDENCIES capybara capybara-webkit + coveralls factory_girl_rails firefly! jasmine-rails diff --git a/README.markdown b/README.markdown index 56bb733..2eb4345 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -# Firefly +# Firefly [![Build Status](https://secure.travis-ci.org/wbyoung/firefly.png)](http://travis-ci.org/wbyoung/firefly) [![Code Climate](https://codeclimate.com/github/wbyoung/firefly.png)](https://codeclimate.com/github/wbyoung/firefly) [![Coverage Status](https://coveralls.io/repos/wbyoung/firefly/badge.png)](https://coveralls.io/r/wbyoung/firefly) To use Firefly in an existing Rails application. diff --git a/firefly.gemspec b/firefly.gemspec index 28e8941..0cc7731 100644 --- a/firefly.gemspec +++ b/firefly.gemspec @@ -23,6 +23,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'factory_girl_rails' s.add_development_dependency 'jasmine-rails' s.add_development_dependency 'pg' + s.add_development_dependency 'coveralls' s.test_files = Dir["spec/**/*"] end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6139f5d..70d2f75 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,6 +4,7 @@ require 'rspec/rails' require 'rspec/autorun' require 'factory_girl_rails' +require 'coveralls' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. @@ -13,6 +14,9 @@ # If you are not using ActiveRecord, you can remove this line. ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration) +# Enable Coveralls +Coveralls.wear! + # Support use of to and to_not in one-liners allowing use of `expect_it { to ... }` # syntax when should has been disabled. RSpec::Core::MemoizedHelpers.module_eval do