From 865e6e6673f0502ae3597c13a95049125e1a3224 Mon Sep 17 00:00:00 2001 From: kei-s Date: Mon, 18 Aug 2014 12:34:34 +0900 Subject: [PATCH] Send test coverage to code crimate --- .gitignore | 1 + .travis.yml | 3 +++ Gemfile | 1 + Gemfile.lock | 9 +++++++++ spec/spec_helper.rb | 2 ++ 5 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index a9a5aec..7123437 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ tmp +coverage diff --git a/.travis.yml b/.travis.yml index ac5df4b..092bae3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: ruby rvm: - 2.1.2 +addons: + code_climate: + repo_token: 8941b22cf202d2f9948ecb2160433661c3f81893478bb7feaa8637049fc74179 before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" diff --git a/Gemfile b/Gemfile index fab8ed0..367e3a9 100644 --- a/Gemfile +++ b/Gemfile @@ -17,4 +17,5 @@ group :test do gem 'rspec', group: 'production' gem 'capybara' gem 'selenium-webdriver' + gem "codeclimate-test-reporter", require: nil end diff --git a/Gemfile.lock b/Gemfile.lock index 122521a..cc670de 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,9 +11,12 @@ GEM xpath (~> 2.0) childprocess (0.5.3) ffi (~> 1.0, >= 1.0.11) + codeclimate-test-reporter (0.4.0) + simplecov (>= 0.7.1, < 1.0.0) creole (0.5.0) daemons (1.1.9) diff-lcs (1.2.5) + docile (1.1.5) eventmachine (1.0.3) expression_parser (0.9.0) ffi (1.9.3) @@ -57,6 +60,11 @@ GEM multi_json (~> 1.0) rubyzip (~> 1.0) websocket (~> 1.0.4) + simplecov (0.9.0) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) sinatra (1.4.5) rack (~> 1.4) rack-protection (~> 1.4) @@ -80,6 +88,7 @@ PLATFORMS DEPENDENCIES RedCloth capybara + codeclimate-test-reporter creole github-markup haml diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4cfdc7..47252c0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,7 @@ require 'bundler' Bundler.setup(:test) +require "codeclimate-test-reporter" +CodeClimate::TestReporter.start require 'capybara/rspec' require_relative '../app.rb'