From 481821bd836fea05891f4eb4dc03615aba0eafbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 12 Feb 2014 16:00:33 +0100 Subject: add coveralls support --- .coveralls.yml | 1 + Gemfile | 2 ++ Gemfile.lock | 21 +++++++++++++++++++++ spec/spec_helper.rb | 6 ++++++ 4 files changed, 30 insertions(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..b541bb2 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: gH5KHG6mjqkPKJhTUuOFaKrSKhNSiBuIu diff --git a/Gemfile b/Gemfile index deac4c2..f8318a1 100644 --- a/Gemfile +++ b/Gemfile @@ -14,3 +14,5 @@ group :test, :development do gem 'haml' gem 'sass' end + +gem 'coveralls', require: false diff --git a/Gemfile.lock b/Gemfile.lock index c1514ce..ad9bc9e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,11 +6,22 @@ PATH GEM remote: http://rubygems.org/ specs: + coveralls (0.7.0) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor diff-lcs (1.2.5) + docile (1.1.3) haml (4.0.5) tilt + mime-types (2.1) + multi_json (1.8.4) rack (1.5.2) rake (10.1.1) + rest-client (1.6.7) + mime-types (>= 1.16) rspec (2.14.1) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) @@ -20,12 +31,22 @@ GEM diff-lcs (>= 1.1.3, < 2.0) rspec-mocks (2.14.5) sass (3.2.14) + simplecov (0.8.2) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) + term-ansicolor (1.3.0) + tins (~> 1.0) + thor (0.18.1) tilt (2.0.0) + tins (1.0.0) PLATFORMS ruby DEPENDENCIES + coveralls haml rack rake diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2f5b3ac..a88a25c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,12 @@ #! /usr/bin/env ruby # begin + require 'coveralls' + Coveralls.wear! + # +rescue LoadError +end +begin require 'simplecov' SimpleCov.start do add_filter 'spec' -- cgit v1.1-2-g2b99