Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parallel builds example for CircleCI v2 beta #190

Open
dinjas opened this issue Jun 13, 2017 · 8 comments
Open

Add parallel builds example for CircleCI v2 beta #190

dinjas opened this issue Jun 13, 2017 · 8 comments
Assignees

Comments

@dinjas
Copy link

dinjas commented Jun 13, 2017

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!

@dblandin
Copy link
Contributor

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!

@dinjas
Copy link
Author

dinjas commented Jun 13, 2017

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

@dblandin
Copy link
Contributor

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.

@dinjas
Copy link
Author

dinjas commented Jun 13, 2017

Will do, thanks!

@dblandin
Copy link
Contributor

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!

@dinjas
Copy link
Author

dinjas commented Aug 25, 2017

Thanks @dblandin! This looks promising, I'll give it a shot when I have an opportunity to - early next week hopefully.

@dinjas
Copy link
Author

dinjas commented Sep 13, 2017

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.

@ale7714 ale7714 self-assigned this Nov 6, 2017
@monfresh
Copy link

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

@dblandin dblandin removed their assignment Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants