From 488b22ecb46e06be87ab9fbac964a4f4b6519bd9 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sun, 4 Jan 2015 23:57:29 +0100 Subject: [PATCH] Add coveralls --- .coveralls.yml | 1 + .gitignore | 3 +++ Gemfile | 3 +++ Gemfile.lock | 22 ++++++++++++++++++++++ test/test_helper.rb | 3 +++ 5 files changed, 32 insertions(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..6e64999 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6a502e9..6952498 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ # Ignore all logfiles and tempfiles. /log/*.log /tmp + +# Ignore coverage data generated by coveralls +/coverage \ No newline at end of file diff --git a/Gemfile b/Gemfile index 6f6ec49..206dae3 100644 --- a/Gemfile +++ b/Gemfile @@ -23,6 +23,9 @@ gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates the API under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc +# Use Coveralls for coverage documentation +gem 'coveralls', require: false + gem 'bootstrap-sass', '~> 3.3.1' gem 'autoprefixer-rails' diff --git a/Gemfile.lock b/Gemfile.lock index 2ac9ccd..5d57505 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -43,8 +43,16 @@ GEM coffee-script-source execjs coffee-script-source (1.8.0) + coveralls (0.7.1) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor + docile (1.1.5) erubis (2.7.0) execjs (2.2.2) + ffi (1.9.6) hike (1.2.3) i18n (0.6.11) jbuilder (2.2.5) @@ -61,6 +69,7 @@ GEM mime-types (2.4.3) minitest (5.4.3) multi_json (1.10.1) + netrc (0.10.2) rack (1.5.2) rack-test (0.6.2) rack (>= 1.0) @@ -82,6 +91,10 @@ GEM rake (10.4.0) rdoc (4.1.2) json (~> 1.4) + rest-client (1.7.2) + ffi (~> 1.9) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) sass (3.2.19) sass-rails (4.0.5) railties (>= 4.0.0, < 5.0) @@ -91,6 +104,11 @@ GEM sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) + simplecov (0.9.1) + docile (~> 1.1.0) + multi_json (~> 1.0) + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) sprockets (2.12.3) hike (~> 1.2) multi_json (~> 1.0) @@ -101,9 +119,12 @@ GEM activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) sqlite3 (1.3.10) + term-ansicolor (1.3.0) + tins (~> 1.0) thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) + tins (1.3.3) turbolinks (2.5.2) coffee-rails tzinfo (1.2.2) @@ -125,6 +146,7 @@ DEPENDENCIES bh (~> 1.2) bootstrap-sass (~> 3.3.1) coffee-rails (~> 4.0.0) + coveralls jbuilder (~> 2.0) jquery-rails mathjax-rails diff --git a/test/test_helper.rb b/test/test_helper.rb index 92e39b2..3c1612f 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,6 @@ +require 'coveralls' +Coveralls.wear!('rails') + ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help'