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

Support for Bitbucket pipelines build #1172

Closed
hnhegde opened this issue Aug 8, 2018 · 6 comments
Closed

Support for Bitbucket pipelines build #1172

hnhegde opened this issue Aug 8, 2018 · 6 comments

Comments

@hnhegde
Copy link

hnhegde commented Aug 8, 2018

Hello,
Is Bitbucket pipelines build system supported by coveralls?

Thanks,
Harsha

@Themanwithoutaplan
Copy link

I have coveralls running fine with pipelines.

@solkimicreb
Copy link

Hi @Themanwithoutaplan!

I am having some trouble with the pipeline. I added an npm script and the repo token (as env var) to the pipeline and it sends the coverage data to coveralls fine, but the coveralls page can not fetch the source code somewhy when I try to check my coverage. Do you have experience with coveralls integration of private repos on bitbucket?

Thanks! 🙂

@Themanwithoutaplan
Copy link

I have no experience with private repos but I think you just have to make sure the GIT_URL is exposed. See https://bitbucket.org/openpyxl/openpyxl/addon/pipelines/home#!/results/543 (I'm using Mercurial so have to expose it explicitly).

@solkimicreb
Copy link

Thanks, I will try that!

@bizob2828
Copy link

bizob2828 commented May 7, 2019

@solkimicreb I have this working by using https://github.com/nickmerwin/node-coveralls. I had to add the COVERALLS_REPO_TOKEN env var to my bitbucket administration dashboard. I'm trying to fork that repo and get it to report PRs and such

In a script within a step in my pipeline.yml:

              - cat code-coverage-report/lcov.info | node_modules/.bin/coveralls

then when i run my tests i make sure it outputs the lcov. Im using nyc with mocha

NODE_ENV=test nyc --reporter=lcov --reporter=html --report-dir=./code-coverage-report mocha  './test/{,!(resources|benchmark)/**/}*.js'

@stale
Copy link

stale bot commented Aug 7, 2020

This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. If your issue is still active please add a comment and we’ll review as soon as we can. Thank you for your contributions.

@stale stale bot closed this as completed Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants