From bf7b192264c27ca0a3dc893cf0b90e0f4dd20a43 Mon Sep 17 00:00:00 2001 From: Kyle Decot Date: Sat, 29 Jun 2019 17:32:23 -0400 Subject: [PATCH 1/4] Adds CodeClimate Test Coverage Integration Travis --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 19aa081..6da11e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,17 @@ --- +env: + global: + - CC_TEST_REPORTER_ID=14e44606da2a63d71ca633697a14e2d5a6f87e75f8159040e1452ef80ee4b77b language: ruby before_install: - gem update --system --no-document - gem install bundler --no-document +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: - bundle exec rspec - bundle exec rubocop +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT From e085995a0e02914a19698198165c4abc85494611 Mon Sep 17 00:00:00 2001 From: Kyle Decot Date: Sat, 29 Jun 2019 17:37:43 -0400 Subject: [PATCH 2/4] Adds simplecov --- Gemfile.lock | 8 ++++++++ app_store_connect.gemspec | 1 + 2 files changed, 9 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index d8f65f7..d7967b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,6 +23,7 @@ GEM crack (0.4.3) safe_yaml (~> 1.0.0) diff-lcs (1.3) + docile (1.3.2) factory_bot (5.0.2) activesupport (>= 4.2.0) ffi (1.11.1) @@ -49,6 +50,7 @@ GEM i18n (1.6.0) concurrent-ruby (~> 1.0) jaro_winkler (1.5.3) + json (2.2.0) jwt (2.2.1) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) @@ -101,6 +103,11 @@ GEM ruby_dep (1.5.0) safe_yaml (1.0.5) shellany (0.0.1) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) thor (0.20.3) thread_safe (0.3.6) timecop (0.9.1) @@ -124,6 +131,7 @@ DEPENDENCIES rake (~> 10.0) rspec (~> 3.0) rubocop (~> 0.71.0) + simplecov timecop (~> 0.9.1) webmock (~> 3.6.0) diff --git a/app_store_connect.gemspec b/app_store_connect.gemspec index d5f6ac2..255f8aa 100644 --- a/app_store_connect.gemspec +++ b/app_store_connect.gemspec @@ -36,4 +36,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop', '~> 0.71.0' spec.add_development_dependency 'timecop', '~> 0.9.1' spec.add_development_dependency 'webmock', '~> 3.6.0' + spec.add_development_dependency 'simplecov', '~> 0.16.1' end From 964443c8c94e0fcbbfe0ad289a5adc3f5c5ab12b Mon Sep 17 00:00:00 2001 From: Kyle Decot Date: Sat, 29 Jun 2019 17:39:21 -0400 Subject: [PATCH 3/4] Adds simplecov flag --- .travis.yml | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6da11e8..9a7fbcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ script: - bundle exec rspec - bundle exec rubocop after_script: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t simplecov diff --git a/Gemfile.lock b/Gemfile.lock index d7967b5..fda1518 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -131,7 +131,7 @@ DEPENDENCIES rake (~> 10.0) rspec (~> 3.0) rubocop (~> 0.71.0) - simplecov + simplecov (~> 0.16.1) timecop (~> 0.9.1) webmock (~> 3.6.0) From 2a13555c699489226b46c87225d77457dbdc2847 Mon Sep 17 00:00:00 2001 From: Kyle Decot Date: Sat, 29 Jun 2019 17:41:59 -0400 Subject: [PATCH 4/4] Sort deps --- app_store_connect.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_store_connect.gemspec b/app_store_connect.gemspec index 255f8aa..209d546 100644 --- a/app_store_connect.gemspec +++ b/app_store_connect.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'rubocop', '~> 0.71.0' + spec.add_development_dependency 'simplecov', '~> 0.16.1' spec.add_development_dependency 'timecop', '~> 0.9.1' spec.add_development_dependency 'webmock', '~> 3.6.0' - spec.add_development_dependency 'simplecov', '~> 0.16.1' end