Relocate gcda files so gcov can find them
This commit is contained in:
parent
189c7529e9
commit
740aed3aef
@ -2,5 +2,6 @@
|
|||||||
|
|
||||||
cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1;
|
cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1;
|
||||||
make -j 2;
|
make -j 2;
|
||||||
|
make -j 2 test;
|
||||||
cd MCServer/;
|
cd MCServer/;
|
||||||
echo stop | gcov $MCSERVER_PATH;
|
echo stop | gcov $MCSERVER_PATH;
|
||||||
|
@ -2,5 +2,8 @@
|
|||||||
|
|
||||||
if [ "$TRAVIS_MCSERVER_BUILD_TYPE" == "COVERAGE" ]
|
if [ "$TRAVIS_MCSERVER_BUILD_TYPE" == "COVERAGE" ]
|
||||||
then
|
then
|
||||||
|
find tests -type f -name '*.gcda' -exec 'cp {} $(dirname {})/../$(basename {})'
|
||||||
coveralls --exclude lib --exclude tests
|
coveralls --exclude lib --exclude tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user