cpp-coveralls
cpp-coveralls copied to clipboard
no data uploaded
Hi all,
I am just experimenting cpp-coveralls with a Fortran project.
On my local Linux box it works great, but when it has been used on travis-ci no data are uploaded to the coveralls.io server.
Project details: home: https://github.com/szaghi/BeFoR64 travis.yml: https://github.com/szaghi/BeFoR64/blob/master/.travis.yml travis log: https://travis-ci.org/szaghi/BeFoR64/builds/52415236 coveralls log: https://coveralls.io/r/szaghi/BeFoR64
As you can see, some previous uploads to coveralls have been done correctly (e.g. the one with 89% coverage), but these have been done directly from my box with the token passed explicitly with -t
.
I suppose that the problem is related to the use of -b
switch. Can anyone help me to fix this problem?
Thank you very much for your great cpp-coveralls.
@szaghi I think the issue is that gcov will segfault if it’s version doesn’t match that of gfortran. In your .travis.yml add sudo apt-get install binutils
somewhere after you add the toolchain-r/test PPA to upgrade gcov and then after that another line like: sudo ln -fs /usr/bin/gcov-4.9 /usr/bin/gcov
I think that might fix your issue. I just got this working myself for the json-fortran project and that was my issue, although I explicitly call gcov because I only want coverage for one file and then pass the -n
flag to coveralls
@szaghi and @zbeekman coveralls
also have a parameter --gcov
to specify the gcov
you are using.
So you can run coveralls --gcov /usr/bin/gcov-4.9
directly without making the links to mass up your system.
ah yes, that’s right… but in my case “my system” is just “travis-ci” which is a virtual machine that gets thrown away after the build, so i don’t care about adding symlinks like that… @eddyxu btw I was having trouble with the exclude flags… which is why I just run gcov
directly and then coveralls -n …
so that coveralls doesn’t run gcov for me anyway