diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..846af190 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: ruby +rvm: + - 2.1.0 +branches: + only: + - master +notifications: + email: + on_success: change + on_failure: change +before_install: + - "cp config/database.yml.example config/database.yml" + - "cp config/config.yml.example config/config.yml" + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" diff --git a/Gemfile b/Gemfile index 84a21537..d5fd2c07 100644 --- a/Gemfile +++ b/Gemfile @@ -54,3 +54,4 @@ gem 'gravtastic' gem 'active_model_serializers' gem 'axlsx_rails' gem 'd3_rails' +gem 'coveralls', require: false diff --git a/Gemfile.lock b/Gemfile.lock index d95d51b8..273d347a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -64,6 +64,12 @@ GEM climate_control (>= 0.0.3, < 1.0) cocoon (1.2.5) coderay (1.1.0) + coveralls (0.7.0) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor d3_rails (3.4.3) railties (>= 3.1.0) daemons (1.1.9) @@ -74,6 +80,7 @@ GEM thread_safe (~> 0.1) warden (~> 1.2.3) diff-lcs (1.2.5) + docile (1.1.3) erubis (2.7.0) eventmachine (1.0.3) execjs (2.0.2) @@ -171,6 +178,8 @@ GEM rdoc (~> 3.12) yajl-ruby (~> 1.1) ref (1.0.5) + rest-client (1.6.7) + mime-types (>= 1.16) rspec-collection_matchers (0.0.3) rspec-expectations (>= 2.99.0.beta1) rspec-core (3.0.0.beta2) @@ -197,6 +206,11 @@ GEM railties (~> 3.2.0) sass (>= 3.1.10) tilt (~> 1.3) + simplecov (0.8.2) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) slop (3.4.7) sprockets (2.2.2) hike (~> 1.2) @@ -204,6 +218,8 @@ GEM rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sqlite3 (1.3.9) + term-ansicolor (1.3.0) + tins (~> 1.0) therubyracer (0.12.1) libv8 (~> 3.16.14.0) ref @@ -215,6 +231,7 @@ GEM thread_safe (0.3.1) atomic (>= 1.1.7, < 2) tilt (1.4.1) + tins (1.1.0) transitions (0.1.12) treetop (1.4.15) polyglot @@ -243,6 +260,7 @@ DEPENDENCIES cancan capybara cocoon + coveralls d3_rails devise factory_girl_rails diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 14c12c19..ed78be5a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,6 +2,8 @@ ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' +require 'coveralls' +Coveralls.wear! # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are