diff --git a/.travis.yml b/.travis.yml
index 244db28..c0d842a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,33 @@
+env:
+ global:
+ - CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
+
language: ruby
rvm:
- 2.2
+
before_install:
- gem install minitest
+- gem install simplecov
+
notifications:
hipchat:
rooms:
secure: S0K355wxCRxwK2cOmbcVOaQitRtIEIq0OEEW7JZp8XtooupGwpmJSm22gqeo7GR6eidqlV8Tp6SUffpLE6SvS0hed3LDbJw7oWoXA7XvRp7gh/AKvLZ0e2uz/a1WPSYy0gNS3TJ72PcyoMS6rPCKR0FyDu8mQ2sW8CpZG07NDCmJPgO+dKfnpeuEmElZoh0AZxE6u1RjvUdSzxnmCVjve621ghtMaKInd0fnNPOM6tm9L0HKSbaLI/buphYhQ/DLpO+dLvt7W2yN+9BwaGqPv7X04Sn0UVAu9+EjSouLLBVNRIsdUfgRGeooStm8/Iw0c1brY4goyYJxGs0TiPkfPeWJcNmQ68YSZLDhUGoMZWCZwGq0Lm/oThJX8K777r3qt0Td4iAXNG+bVN+1KZtZRra6B/qBKBcpTTs1p4WRfIUY9D6udwyWZMcGEOFecsyt/MRlkjdmu+zSvZsadvhvQCL+m+aUmTtlUbswXu46g5NxQrHS9UKzzPkk/3mUrO1r4HLhhuuNtn3LRMbx9WVMdidMiFaAxG99VFC0Gon//FMvpTShNrRRuNSW7EJ0V8gwpx69SticfxC88pfka/MEeY9KoZc3MJdILbpgLK5oPuFMih2F/emJP1muWnk8mjaEHqHPqnSuKRr4oqO1xbh+r2ggKW58akCe08a4TihD4rg=
template:
- - '%{repository}
- Build %{build_number} on branch %{branch} by %{author}: %{message}
- View on GitHub'
+ - '%{repository}
+ Build %{build_number} on branch %{branch} by %{author}: %{message}
+ View on GitHub'
format: html
notify: false
+
+before_script:
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ - chmod +x ./cc-test-reporter
+ - ./cc-test-reporter before-build
+
script:
- - rake
\ No newline at end of file
+ - rake
+
+after_script:
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
diff --git a/ruby_http_client.gemspec b/ruby_http_client.gemspec
index 712c0a6..5b9ee59 100644
--- a/ruby_http_client.gemspec
+++ b/ruby_http_client.gemspec
@@ -17,4 +17,5 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.add_development_dependency 'rake', '~> 0'
+ spec.add_development_dependency 'simplecov', '~> 0'
end
diff --git a/test/test_helper.rb b/test/test_helper.rb
new file mode 100644
index 0000000..67b05d1
--- /dev/null
+++ b/test/test_helper.rb
@@ -0,0 +1,5 @@
+if ENV['CI'] == 'true'
+ require 'simplecov'
+ SimpleCov.start
+end
+
diff --git a/test/test_ruby_http_client.rb b/test/test_ruby_http_client.rb
index 7bd73fc..f23f70b 100644
--- a/test/test_ruby_http_client.rb
+++ b/test/test_ruby_http_client.rb
@@ -1,3 +1,4 @@
+require './test/test_helper'
require 'ruby_http_client'
require 'minitest/autorun'