blob: 9ac4a2b51618938bf83c3b163ce2e4dbba6d10f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -ev
if [ "$BUILD_MODE" = "coverage" ]; then
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info
lcov --list coverage.info
# Assume that $COVERALLS_REPO_TOKEN might not be set (e.g. pull requests)
coveralls-lcov --repo-token="$COVERALLS_REPO_TOKEN" coverage.info
fi
sudo make install
|