blob: 9c42ce93d927dbc9be5d2dafe4d863709e502613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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\.c)' --gcov-options '\-lp'"
fi
|