travis-ci: prepare and submit test coverage report

This commit is contained in:
Дмитрий Левин 2016-02-04 00:16:11 +00:00
parent d8a81dfa40
commit 5be488c3a5
2 changed files with 15 additions and 0 deletions

View File

@ -15,6 +15,10 @@ addons:
apt:
packages:
- gcc-multilib
- lcov
install:
- pip install --user codecov
env:
global:

View File

@ -39,3 +39,14 @@ git fetch --unshallow
./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
make -k $j distcheck VERBOSE=${VERBOSE-}
if [ "$CC:${TARGET-}" = 'gcc:x86_64' ]; then
set -- strace-*.tar.xz
tar -xf "$1"
dir="${1%.tar.xz}"
cd "$dir"
./configure --enable-code-coverage ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
make -k $j
make -k $j check VERBOSE=${VERBOSE-}
codecov ||:
fi