From 8c35d163a5c50eeb30220141036dac0c5dad295c Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 6 May 2018 17:55:50 +0900 Subject: Port travis_retry for CI (#7379) * Port travis_retry for CI * Add license --- spec/spec_helper.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 903032937..a0466dd4b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@ -#require 'rspec/retry' require 'simplecov' GC.disable @@ -12,9 +11,6 @@ end gc_counter = -1 RSpec.configure do |config| - #config.verbose_retry = true - #config.display_try_failure_messages = true - config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end @@ -29,10 +25,6 @@ RSpec.configure do |config| end end - #config.around :each do |ex| - # ex.run_with_retry retry: 3 - #end - config.before :suite do Chewy.strategy(:bypass) end -- cgit From ac788ad47e32a3cf84a46ac87f84f376185cdad4 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 9 May 2018 23:59:58 +0900 Subject: Disable simplecov on CircleCI (#7416) * Disable simplecov on CircleCI * Remove --format progress --- .circleci/config.yml | 1 + spec/spec_helper.rb | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'spec/spec_helper.rb') diff --git a/.circleci/config.yml b/.circleci/config.yml index fc9c7e22b..02b505457 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,7 @@ aliases: RAILS_ENV: test PARALLEL_TEST_PROCESSORS: 4 ALLOW_NOPAM: true + DISABLE_SIMPLECOV: true working_directory: ~/projects/mastodon/ - &attach_workspace diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a0466dd4b..0cd1f91d0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,11 +1,12 @@ -require 'simplecov' - GC.disable -SimpleCov.start 'rails' do - add_group 'Services', 'app/services' - add_group 'Presenters', 'app/presenters' - add_group 'Validators', 'app/validators' +if ENV['DISABLE_SIMPLECOV'] != 'true' + require 'simplecov' + SimpleCov.start 'rails' do + add_group 'Services', 'app/services' + add_group 'Presenters', 'app/presenters' + add_group 'Validators', 'app/validators' + end end gc_counter = -1 -- cgit