travis: let codecov find coverage reports
This commit is contained in:
parent
21491bbf6b
commit
fc25ac6fb3
22
.travis.yml
22
.travis.yml
@ -42,6 +42,26 @@ script:
|
||||
|
||||
after_success:
|
||||
- |
|
||||
mkdir gcov; cd gcov
|
||||
list_src_path=(gmio_core gmio_core/internal
|
||||
gmio_stl gmio_stl/internal
|
||||
gmio_amf)
|
||||
basedir_output=../build/src/CMakeFiles/gmio_static.dir
|
||||
for src_path in ${list_src_path[*]}; do
|
||||
# Rename file.c.gcno -> file.gcno
|
||||
for file in $basedir_output/$src_path/*.c.gcno; do
|
||||
basename_file=`basename $file .c.gcno`
|
||||
mv $file $basedir_output/$src_path/$basename_file.gcno
|
||||
done
|
||||
# Rename file.c.gcda -> file.gcda
|
||||
for file in $basedir_output/$src_path/*.c.gcda; do
|
||||
basename_file=`basename $file .c.gcda`
|
||||
mv $file $basedir_output/$src_path/$basename_file.gcda
|
||||
done
|
||||
# Generate *.gcov files
|
||||
gcov ../src/$src_path/*.c -o $basedir_output/$src_path
|
||||
done
|
||||
|
||||
if [ "$TRAVIS_TESTS_COVERAGE" = "ON" ]; then
|
||||
bash <(curl -s https://codecov.io/bash);
|
||||
bash <(curl -s https://codecov.io/bash) -X gcov -Xcoveragepy -s .
|
||||
fi
|
||||
|
@ -1,14 +1,14 @@
|
||||
<img src="doc/gmio.png" height="91" alt="gmio_logo"/>
|
||||
|
||||
|
||||
[](https://travis-ci.org/fougue/gmio)
|
||||
[](https://travis-ci.org/fougue/gmio)
|
||||
[](https://ci.appveyor.com/project/HuguesDelorme/gmio)
|
||||
<a href="https://scan.coverity.com/projects/5721">
|
||||
<img alt="Coverity Scan Build Status"
|
||||
src="https://scan.coverity.com/projects/5721/badge.svg"/>
|
||||
</a>
|
||||
[](https://coveralls.io/github/fougue/gmio?branch=master)
|
||||
[](https://github.com/fougue/gmio/blob/master/LICENSE.txt)
|
||||
[](https://codecov.io/gh/fougue/gmio/branch/develop)
|
||||
[](https://github.com/fougue/gmio/blob/develop/LICENSE.txt)
|
||||
[](https://github.com/fougue/gmio/releases)
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ create a small test program that shows the problem when run.
|
||||
License
|
||||
=======
|
||||
|
||||
gmio is made available under a "2-clause" BSD [license](https://github.com/fougue/gmio/blob/master/LICENSE.txt).
|
||||
gmio is made available under a "2-clause" BSD [license](https://github.com/fougue/gmio/blob/develop/LICENSE.txt).
|
||||
|
||||
|
||||
Credits
|
||||
|
Loading…
Reference in New Issue
Block a user