diff options
Diffstat (limited to '.travis/autotools/after_success.sh')
-rw-r--r-- | .travis/autotools/after_success.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.travis/autotools/after_success.sh b/.travis/autotools/after_success.sh new file mode 100644 index 0000000..6c648a2 --- /dev/null +++ b/.travis/autotools/after_success.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +if test x"$COVERAGE" = xyes; then + # docker exec $CONTAINER pip install cpp-coveralls + + # manually install cpp-coveralls until the gcov fix has been + # incorporated in the pip version + docker exec $CONTAINER sh -c "cd /tmp && rm -rf cpp-coveralls && git clone -q https://github.com/eddyxu/cpp-coveralls && cd cpp-coveralls && python setup.py build && python setup.py install" + docker exec \ + -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" \ + -e TRAVIS_BRANCH="$TRAVIS_BRANCH" \ + $CONTAINER sh -c "cd $BUILDDIR && cpp-coveralls -b $BUILDDIR -E '(^|.*/)(frob|mock|test)-.*|(^|.*/)(virtual-fixed-generated\.h)' --gcov-options '\-lp'" +fi |