Browse Source

Disable simplecov on CircleCI (#7416)

* Disable simplecov on CircleCI

* Remove --format progress
fox-changes
Yamagishi Kazutoshi 1 year ago
parent
commit
ac788ad47e
2 changed files with 8 additions and 6 deletions
  1. 1
    0
      .circleci/config.yml
  2. 7
    6
      spec/spec_helper.rb

+ 1
- 0
.circleci/config.yml View File

@@ -11,6 +11,7 @@ aliases:
RAILS_ENV: test
PARALLEL_TEST_PROCESSORS: 4
ALLOW_NOPAM: true
DISABLE_SIMPLECOV: true
working_directory: ~/projects/mastodon/

- &attach_workspace

+ 7
- 6
spec/spec_helper.rb View File

@@ -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

Loading…
Cancel
Save