test-reporter
test-reporter copied to clipboard
Add parallel builds example for CircleCI v2 beta
I see a CircleCI example, but it's not clear to me what I need to do to use with the beta version of their v2 (docker-based) platform. Do you have an example of that?
Thanks!
Hi @dinjas!
We have more CI examples available on our docs site: https://docs.codeclimate.com/docs/setting-up-test-coverage
Let me know if you have any further questions after checking that out!
Thanks @dblandin, that's where I came from :)
The config for v2 looks a bit different and I'm not sure how to integrate with the newer setup. Circle has an example v2 config here: https://github.com/CircleCI-Public/circleci-demo-ruby-rails/blob/master/.circleci/config.yml
Ah, I see. I've been able to setup a 2.0 build using the machine executor which offers shared state between steps, but haven't yet dug into a working solution for 2.0 using the primary docker executor. As I recall, I don't think you have access to build artifacts between steps since your're then dealing with remote docker containers.
I'll do some digging and report back. Let me know if you come with anything sooner.
Will do, thanks!
Hey @dinjas,
Looks like we've added some example configuration documenting how use the new test reporter in a Circle 2.0 project: https://docs.codeclimate.com/docs/circle-ci-test-coverage-example#section-circleci-20
Let me know if that makes sense and works for you!
Thanks @dblandin! This looks promising, I'll give it a shot when I have an opportunity to - early next week hopefully.
I've played around with that a little bit, but the example does not line up to what I am doing exactly (Rails vs PHP) and I have not had opportunity to dig into it further. Will update here if I get the chance to do so, but might be some time as this is somewhat low priority for me right now.
@dblandin I'm running into the same issue. The last doc you pointed to doesn't mention parallelism. It would be great if you could add docs for parallelism and Circle CI 2.0. The closest I was able to get was using this script: https://gist.github.com/leemachin/1aeb217d989f3981cc3f06d88938bd33 which worked for total coverage, but the diff coverage doesn't seem to be right in GitHub. It says 33% (80% threshold).