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

ENH: experiment to enable codecov coverage testing #272

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

fedorov
Copy link
Member

@fedorov fedorov commented Jun 29, 2017

No description provided.

@fedorov
Copy link
Member Author

fedorov commented Jun 29, 2017

re #247

@fedorov
Copy link
Member Author

fedorov commented Jun 30, 2017

There are some issues running the script from circle.yml, but more fundamental is this error that I get when trying to run individual commands on the CircleCI server:

image

No idea how to fix this!

gcov/lcov are installed via sudo apt-get install lcov. Maybe that should be done differently.

@fedorov
Copy link
Member Author

fedorov commented Jun 30, 2017

Tried setting CFLAGS/CXXFLAGS/LDFLAGS to make sure these flags propagate to all components of superbuild, but it didn't help.

@fedorov
Copy link
Member Author

fedorov commented Jul 3, 2017

No idea how to fix this!

The problem was caused by a mismatch in the version of compiler and gcov.

The solution is to use the matching version of gcov while running lcov: --gcov-tool /usr/bin/gcov-4.9

ubuntu@box324:~/dcmqi/codecov/dcmqi-build$ gcc --version
gcc (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ubuntu@box324:~/dcmqi/codecov/dcmqi-build$ gcov --version
gcov (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

ubuntu@box324:~/dcmqi/codecov/dcmqi-build$ /usr/bin/gcov-4.9 --version
gcov (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

This adds about 18 minutes to the CircleCI build time, since the actual build is
done using dockcross. I am not sure if coverage can be tested using docker targets,
and don't want to touch that. Perhaps will revisit at some point with @jcfr later.

Resolves QIICR#247
@fedorov fedorov merged commit 644d02e into QIICR:master Jul 3, 2017
@jcfr jcfr mentioned this pull request Jan 26, 2023
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

Successfully merging this pull request may close these issues.

1 participant