[travis] attempt to fix coverage
This commit is contained in:
parent
915062c6a3
commit
8955e3b189
2 changed files with 9 additions and 5 deletions
12
.travis.yml
12
.travis.yml
|
@ -72,9 +72,13 @@ install:
|
|||
|
||||
before_script:
|
||||
- source bootstrap.sh
|
||||
- mason install clang 3.8.0
|
||||
- export PATH=$(mason prefix clang 3.8.0)/bin:${PATH}
|
||||
- which clang++
|
||||
- |
|
||||
if [[ $(uname -s) == 'Linux' ]]; then
|
||||
mason install clang 3.8.0
|
||||
export PATH=$(mason prefix clang 3.8.0)/bin:${PATH}
|
||||
which clang++
|
||||
export LLVM_COV="$(mason prefix clang 3.8.0)/bin/llvm-cov"
|
||||
fi
|
||||
- ccache --version
|
||||
- ccache -p || true
|
||||
- ccache --show-stats || true
|
||||
|
@ -86,7 +90,7 @@ script:
|
|||
- cat config.log
|
||||
- make
|
||||
- make test
|
||||
- enabled ${COVERAGE} export LLVM_COV="$(mason prefix clang 3.8.0)/bin/llvm-cov" && coverage
|
||||
- enabled ${COVERAGE} coverage
|
||||
- enabled ${BENCH} make bench
|
||||
|
||||
after_success:
|
||||
|
|
|
@ -93,7 +93,7 @@ configure () {
|
|||
coverage () {
|
||||
./mason_packages/.link/bin/cpp-coveralls \
|
||||
--gcov ${LLVM_COV} \
|
||||
--build-root . --gcov-options '\-lp' \
|
||||
--build-root . \
|
||||
--exclude mason_packages \
|
||||
--exclude .sconf_temp --exclude benchmark --exclude deps \
|
||||
--exclude scons --exclude test --exclude demo --exclude docs \
|
||||
|
|
Loading…
Reference in a new issue