From 9c605693102e6ec76d1f4a66c58e0bf206c9f1e6 Mon Sep 17 00:00:00 2001 From: Artem Vasiliev <artem.job@gmail.com> Date: Tue, 1 Aug 2017 00:22:53 +0300 Subject: [PATCH] chore(ci): switched to fresh codeclimate reporter configuration --- .gitignore | 1 + .travis.yml | 6 +++++- Gemfile | 7 +++++-- Gemfile.lock | 12 +++++------- spec/support/spec_helper.rb | 5 +++-- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 0d504e2..a7cf868 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /out /spec/out /node_modules +/coverage diff --git a/.travis.yml b/.travis.yml index 28cc009..efebd7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,10 @@ install: - nvm install stable - nvm use stable - npm install + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter +before_script: + - ./cc-test-reporter before-build script: - bundle exec rspec && (npm run semantic-release || true) - + - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi diff --git a/Gemfile b/Gemfile index c903870..9984d53 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,9 @@ end group :development, :test do gem 'rspec' - gem 'webmock' - gem 'codeclimate-test-reporter', require: false +end + +group :test do + gem 'simplecov', require: false # Test coverage reporting + gem 'webmock' # disallow real HTTP reqs from specs end diff --git a/Gemfile.lock b/Gemfile.lock index 4381dc1..d22cd4e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,8 +8,6 @@ GEM tzinfo (~> 1.1) addressable (2.4.0) ast (2.2.0) - codeclimate-test-reporter (0.6.0) - simplecov (>= 0.7.1, < 1.0.0) coderay (1.1.1) concurrent-ruby (1.0.2) crack (0.4.3) @@ -41,7 +39,7 @@ GEM rubocop (~> 0.20) hashdiff (0.3.0) i18n (0.7.0) - json (2.0.2) + json (2.0.3) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) @@ -87,11 +85,11 @@ GEM ruby_dep (1.4.0) safe_yaml (1.0.4) shellany (0.0.1) - simplecov (0.12.0) + simplecov (0.14.1) docile (~> 1.1.0) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-html (0.10.0) + simplecov-html (0.10.1) slop (3.6.0) thor (0.19.1) thread_safe (0.3.5) @@ -108,15 +106,15 @@ PLATFORMS DEPENDENCIES activesupport - codeclimate-test-reporter guard-bundler guard-rspec guard-rubocop rspec + simplecov webmock RUBY VERSION ruby 2.3.1p112 BUNDLED WITH - 1.12.5 + 1.14.6 diff --git a/spec/support/spec_helper.rb b/spec/support/spec_helper.rb index 0523c6d..18cf343 100644 --- a/spec/support/spec_helper.rb +++ b/spec/support/spec_helper.rb @@ -1,6 +1,7 @@ -require 'codeclimate-test-reporter' +require 'simplecov' require 'webmock/rspec' -CodeClimate::TestReporter.start + +SimpleCov.start require_relative '../../lib/environment' -- GitLab