diff --git a/Gemfile b/Gemfile index 2ac6cb33..f8e8dfa0 100644 --- a/Gemfile +++ b/Gemfile @@ -12,7 +12,6 @@ group :development do gem 'guard-bundler' gem 'guard-ctags-bundler' gem 'rb-inotify' - gem 'simplecov', require: false end @@ -21,4 +20,5 @@ group :development, :test do gem 'rspec' gem 'rspec-fire', require: 'rspec/fire' gem 'rspec-spies', require: false + gem 'coveralls', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index ce9a12aa..3487b2ff 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,6 +23,13 @@ GEM childprocess (0.3.9) ffi (~> 1.0, >= 1.0.11) coderay (1.0.9) + colorize (0.5.8) + coveralls (0.6.5) + colorize + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + thor diff-lcs (1.2.2) erubis (2.7.0) ffi (1.6.0) @@ -47,6 +54,7 @@ GEM log4r (1.1.10) lumberjack (1.0.3) method_source (0.8.1) + mime-types (1.22) multi_json (1.7.2) net-scp (1.1.0) net-ssh (>= 2.6.5) @@ -58,6 +66,8 @@ GEM rake (10.0.4) rb-inotify (0.9.0) ffi (>= 0.5.0) + rest-client (1.6.7) + mime-types (>= 1.16) rspec (2.13.0) rspec-core (~> 2.13.0) rspec-expectations (~> 2.13.0) @@ -81,6 +91,7 @@ PLATFORMS ruby DEPENDENCIES + coveralls guard guard-bundler guard-ctags-bundler @@ -90,6 +101,5 @@ DEPENDENCIES rspec rspec-fire rspec-spies - simplecov vagrant! vagrant-lxc! diff --git a/README.md b/README.md index 64ae2b03..a8fb42b3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# vagrant-lxc [![Build Status](https://travis-ci.org/fgrehm/vagrant-lxc.png?branch=master)](https://travis-ci.org/fgrehm/vagrant-lxc) [![Gem Version](https://badge.fury.io/rb/vagrant-lxc.png)](http://badge.fury.io/rb/vagrant-lxc) [![Code Climate](https://codeclimate.com/github/fgrehm/vagrant-lxc.png)](https://codeclimate.com/github/fgrehm/vagrant-lxc) +# vagrant-lxc [![Build Status](https://travis-ci.org/fgrehm/vagrant-lxc.png?branch=master)](https://travis-ci.org/fgrehm/vagrant-lxc) [![Gem Version](https://badge.fury.io/rb/vagrant-lxc.png)](http://badge.fury.io/rb/vagrant-lxc) [![Code Climate](https://codeclimate.com/github/fgrehm/vagrant-lxc.png)](https://codeclimate.com/github/fgrehm/vagrant-lxc) [![Coverage Status](https://coveralls.io/repos/fgrehm/vagrant-lxc/badge.png?branch=master)](https://coveralls.io/r/fgrehm/vagrant-lxc) Linux Containers support for Vagrant 1.1+ diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9b6ca052..07038e7b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,12 @@ if ENV['COVERAGE'] require 'simplecov' + require 'coveralls' + + SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter + ] + SimpleCov.start do add_filter { |source_file| source_file.filename =~ /\/spec\/support/ } end