diff --git a/.travis.yml b/.travis.yml index 30d52b6..7598afa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,7 @@ rvm: - jruby-19mode - 2.0.0 env: - - RAILS_ENV=test RACK_ENV=test \ No newline at end of file + - RAILS_ENV=test RACK_ENV=test +addons: + code_climate: + repo_token: 914d2ef5cd8835295d483ff2143e58ed06bb20b25aca3e451be29f8963f76f4 \ No newline at end of file diff --git a/Gemfile b/Gemfile index 361d5aa..aa598c9 100644 --- a/Gemfile +++ b/Gemfile @@ -30,6 +30,7 @@ gem 'mocha', ">=1.1.0", :require => false #gem "mocha", "~> 0.12.8", :require => false gem 'webmock' gem 'coveralls', require: false +gem "codeclimate-test-reporter", group: :test, require: nil unless ENV["TRAVIS"] gem 'rvm-tester' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4a42434..2e4b9fd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,6 +12,12 @@ at_exit do; end end + +if ENV["TRAVIS"] + require "codeclimate-test-reporter" + CodeClimate::TestReporter.start +end + require 'active_support' require 'nori' require 'nokogiri'