diff --git a/.circleci/config.yml b/.circleci/config.yml index d715a62..4c06819 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,11 +53,11 @@ jobs: # sudo composer self-update # composer install -n --prefer-dist # download test reporter as a static binary - - run: - name: Setup Code Climate test-reporter - command: | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter +# - run: +# name: Setup Code Climate test-reporter +# command: | +# curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter +# chmod +x ./cc-test-reporter # Only necessary if app uses webpacker or yarn in some other way #- restore_cache: # keys: @@ -105,10 +105,10 @@ jobs: - run: command: | mkdir /tmp/test-results - ./cc-test-reporter before-build +# ./cc-test-reporter before-build TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) bundle exec rspec $TESTFILES --profile 10 -r rspec_junit_formatter --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress - ./cc-test-reporter after-build --coverage-input-type clover --exit-code $? +# ./cc-test-reporter after-build --coverage-input-type clover --exit-code $? - store_test_results: path: /tmp/test-results - store_artifacts: diff --git a/Gemfile b/Gemfile index ea6842c..1d9089c 100644 --- a/Gemfile +++ b/Gemfile @@ -90,7 +90,7 @@ end group :test do # gem 'spring' gem 'capybara' - # gem 'codeclimate-test-reporter', require: nil + gem 'codeclimate-test-reporter', require: nil # FIXME: Downgraded b/c of deprecations, fix static attributes gem 'factory_bot_rails', '4.10.0' gem 'phantomjs', require: 'phantomjs/poltergeist' diff --git a/Gemfile.lock b/Gemfile.lock index b49191c..38407b1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -150,6 +150,8 @@ GEM mini_mime (>= 0.1.3) childprocess (3.0.0) cliver (0.3.2) + codeclimate-test-reporter (1.0.7) + simplecov coderay (1.1.2) coffee-rails (5.0.0) coffee-script (>= 2.2.0) @@ -454,6 +456,7 @@ DEPENDENCIES bourbon (~> 3.1.8) capybara carrierwave + codeclimate-test-reporter coffee-rails country_select dalli (~> 2.7.0) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 05807ec..587cd15 100755 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,7 @@ ENV["RAILS_ENV"] ||= "test" require 'dotenv' Dotenv.load() -# require "codeclimate-test-reporter" +require "codeclimate-test-reporter" require "simplecov" # CodeClimate::TestReporter.start