]> granicus.if.org Git - strace/commitdiff
travis-ci: prepare and submit test coverage report
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 4 Feb 2016 00:16:11 +0000 (00:16 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 4 Feb 2016 17:04:13 +0000 (17:04 +0000)
.travis.yml
travis-ci.sh

index 73fe57ac9e1132567b5a7908ce0e2d0cb8e28884..e70329a95771d8967af38cd15f8274124bbfc18f 100644 (file)
@@ -15,6 +15,10 @@ addons:
   apt:
     packages:
     - gcc-multilib
+    - lcov
+
+install:
+  - pip install --user codecov
 
 env:
   global:
index 2af16492250990866507ad0a95f38c6c5486e1f7..ce1c11a2d4b7cd24810cd879bcfa1acd4509c533 100755 (executable)
@@ -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