Skip to content

Commit

Permalink
travis: Manually install cpp-coveralls
Browse files Browse the repository at this point in the history
To accommodate the gcov format change in gcc 8.1:
eddyxu/cpp-coveralls#127
which is not yet available in the pip version.
  • Loading branch information
ueno committed Aug 28, 2018
1 parent 2066e7c commit 0961cf5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis/linux/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/sh

if test x"$COVERAGE" = xyes; then
docker exec $CONTAINER pip install cpp-coveralls
# 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 && coveralls -b $BUILDDIR -E '(^|.*/)(frob|mock|test)-.*|(^|.*/)(virtual-fixed\.c)' --gcov-options '\-lp'"
$CONTAINER sh -c "cd $BUILDDIR && cpp-coveralls -b $BUILDDIR -E '(^|.*/)(frob|mock|test)-.*|(^|.*/)(virtual-fixed\.c)' --gcov-options '\-lp'"
fi

0 comments on commit 0961cf5

Please sign in to comment.