fix(.travis.yml): coverage-related problems

- use lcov-1.11
 - fix typo in line 197
 - keep gcov-4.8

Reference: http://www.cmake.org/pipermail/cmake/2008-December/026185.html
This commit is contained in:
Soonho Kong 2015-03-05 13:51:03 -05:00
parent 8295ef4e57
commit 9d1660dfed

View file

@ -191,12 +191,12 @@ install:
sudo pip install dropbox; sudo pip install dropbox;
fi fi
- if [[ $TESTCOV == ON ]]; then - if [[ $TESTCOV == ON ]]; then
wget http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz; wget http://downloads.sourceforge.net/ltp/lcov-1.11.tar.gz;
tar xvfz lcov-1.10.tar.gz; tar xvfz lcov-1.11.tar.gz;
sudo cp -v lcov-1.10/bin/{lcov,genpng,gendesc,genhtml,geninfo} /usr/bin/; sudo cp -v lcov-1.11/bin/{lcov,genpng,gendesc,genhtml,geninfo} /usr/bin/;
sudo chmod 777 /usr/bin/lcov /usr/bin/genhtml /usr/bin/geninfo /usr/bin/genpng /usg/bin/gendesc; sudo chmod 777 /usr/bin/lcov /usr/bin/genhtml /usr/bin/geninfo /usr/bin/genpng /usr/bin/gendesc;
rm -rf lcov-1.10.tar.gz lcov-1.10; rm -rf lcov-1.11.tar.gz lcov-1.11;
sudo mv -v `which gcov-4.8` `which gcov`; sudo cp -v `which gcov-4.8` `which gcov`;
fi fi
before_script: before_script: