lean2/script/lcov.sh
Soonho Kong 4a4f7eb9e2 Update .travis.yml and .travis.osx.yml
On Linux:
 - push to the repo on bitbucket, to trigger email-diff
 - push to the lean-osx repo on github, to trigger osx build & test
 - run test coverage and upload to dropbox
 - run doxygen and upload to dropbox
 - upload compiled binaries to dropbox
 - secure passwords by putting "-q" option to git operations

On OSX:
 - build & test
 - upload compiled binaries to dropbox
 - roll back to HPC g++-4.9.0 + gmp & mpfr (homebrew)
 - patch the problem in <cstddef>, saved in dropbox
2013-08-20 02:01:46 -07:00

16 lines
378 B
Bash
Executable file

#!/bin/bash
CXX=$1
GCOV_TOOL=$2
LCOV=~/bin/lcov
GENHTML=~/bin/genhtml
rm -rf build
mkdir -p build/testcov
cd build/testcov
cmake -DCMAKE_BUILD_TYPE=TESTCOV -DCMAKE_CXX_COMPILER=$CXX ../../src
make
ctest
$LCOV -c -b ../../src -d . -o cov.info --no-external --gcov-tool $GCOV_TOOL
$LCOV --remove cov.info "tests/*" -o cov.info
$GENHTML cov.info --output-directory lcov
cd ../../