From: Dmitry V. Levin Date: Thu, 4 Feb 2016 00:16:11 +0000 (+0000) Subject: travis-ci: prepare and submit test coverage report X-Git-Tag: v4.12~597 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5be488c3a5dc45b958187b777c6eda687e76990f;p=strace travis-ci: prepare and submit test coverage report --- diff --git a/.travis.yml b/.travis.yml index 73fe57ac..e70329a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,10 @@ addons: apt: packages: - gcc-multilib + - lcov + +install: + - pip install --user codecov env: global: diff --git a/travis-ci.sh b/travis-ci.sh index 2af16492..ce1c11a2 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -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