Code Climate Needs:
Here's the basic troubleshooting checklist, with additional details below:
- Get debug output from your CI build using the
- View the output
- Check your CI's env var names
- Adjust your coverage setup
The cc-test-reporter command has an option to output additional debug messages during operation.
For single builds, use:
For tests run in parallel, use:
Once you've added the
--debug option, you'll find the branch name identified in your build log, like this:
When looking at a payload, Code Climate looks for a specific set of environmental variable names.
Double-check to make sure your CI's
GIT_BRANCH variable names can be matched against the ones listed at the bottom of this file:
Working with a Docker container?
- Make sure to pass the environment variables through.
You could pass the env variable to the docker container doing something like this:
docker run \ --env CI \ --env CIRCLECI \ --env CIRCLE_BUILD_NUM \ --env CIRCLE_BRANCH \ --env CIRCLE_SHA1 \ your-org/app bundle exec rspec