Eu acabei construindo o lcov-1.11 eu mesmo e substituindo a chamada para lcov
com ${TRAVIS_BUILD_DIR}/lcov-1.11/bin/lcov --gcov-tool /usr/bin/gcov-4.8
Aqui está uma correção completa:
env:
global:
- BUILD_COVERAGE=${TRAVIS_BUILD_DIR}/coverage
after_success:
# If GCC: compute code coverage and export it to coveralls
- if [ "$CC" = "gcc-4.8" ];
then
cd ${TRAVIS_BUILD_DIR};
wget http://downloads.sourceforge.net/ltp/lcov-1.11.tar.gz;
tar xvfz lcov-1.11.tar.gz;
make -C lcov-1.11;
mkdir $BUILD_COVERAGE;
cd $BUILD_COVERAGE;
cmake ${TRAVIS_BUILD_DIR} -DBUILD_COVERAGE=ON;
make check;
${TRAVIS_BUILD_DIR}/lcov-1.11/bin/lcov --gcov-tool /usr/bin/gcov-4.8 --capture --directory …;
fi