From 5be488c3a5dc45b958187b777c6eda687e76990f Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 4 Feb 2016 00:16:11 +0000 Subject: [PATCH] travis-ci: prepare and submit test coverage report --- .travis.yml | 4 ++++ travis-ci.sh | 11 +++++++++++ 2 files changed, 15 insertions(+) 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 -- 2.50.1