Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Set up coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Apr 12, 2013
1 parent e87b923 commit 6c59cd2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ group :development do
gem 'guard-bundler'
gem 'guard-ctags-bundler'
gem 'rb-inotify'
gem 'simplecov', require: false
end


Expand All @@ -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
12 changes: 11 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -81,6 +91,7 @@ PLATFORMS
ruby

DEPENDENCIES
coveralls
guard
guard-bundler
guard-ctags-bundler
Expand All @@ -90,6 +101,5 @@ DEPENDENCIES
rspec
rspec-fire
rspec-spies
simplecov
vagrant!
vagrant-lxc!
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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+

Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6c59cd2

Please sign in to comment.