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

circleci not supported #143

Open
AndreasAZiegler opened this issue Mar 21, 2019 · 1 comment
Open

circleci not supported #143

AndreasAZiegler opened this issue Mar 21, 2019 · 1 comment

Comments

@AndreasAZiegler
Copy link

According to lemurheavy/coveralls-public#1286 coverals-cpp does not support circleci. As I don't want to install node (as I don't need it in my c++ project) I would be glad if cpp-coveralls would support circleci along with travisci.

@tprk77
Copy link

tprk77 commented Oct 16, 2019

I was able to get it working by faking some environment variables.

https://github.com/tprk77/ttfrm/blob/master/.circleci/config.yml

- run:
    name: Generate and upload coverage
    command: |
      echo -e "service_name: circle-ci\n" > .coveralls.yml \
      && TRAVIS_JOB_ID="#${CIRCLE_BUILD_NUM}" cpp-coveralls -r . -b build_cov -i ttfrm
    # NOTE Here we need to trick cpp-coveralls into doing the right thing

The two important parts are supplying a service_name using the config file (which can be anything other than travis-ci) and setting the job ID with TRAVIS_JOB_ID="#${CIRCLE_BUILD_NUM}".

aroxby added a commit to aroxby/cpu that referenced this issue Nov 28, 2021
* Create CircleCI config

* Add workaround to publish coveralls from non-travis CI

Found at eddyxu/cpp-coveralls#143 (comment)

* Install PyYAML for cpp-coveralls

It needs this to parse it's own config

* Rename docker workdir to "app"

* Copy .git into the container

since CircleCI doesn't support mounts
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

2 participants