Hello and thank you in advance for your help. I am trying to get Circle CI to send my test coverage results to CodeClimate. The results are being saved into Artifacts but they don’t seem to be getting sent to CodeClimate. CodeClimate says it can only take coverage results from the default branch of my repo, which is master. Maybe this has something to do with it?
Here is the part of my spec_helper.rb with test reporting info:
require 'simplecov'
# save to CircleCI's artifacts directory if we're on CircleCI
if ENV['CIRCLE_ARTIFACTS']
dir = File.join(ENV['CIRCLE_ARTIFACTS'], "coverage")
SimpleCov.coverage_dir(dir)
end
SimpleCov.start
I put my CODECLIMATE_REPO_TOKEN
into the environment vars in Circle CI
I also tried creating a circle.yml with the following:
test:
post:
- bundle exec codeclimate-test-reporter
But this caused the build to fail.
Here is a link to the successful build:
https://circleci.com/gh/alookatommorow/children-of-mex/43