aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/after_success.sh
blob: 2aaabe294beda3b4f4c43a870a61a597eb87ec3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

BUILD_MODE=$1

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
  coveralls-lcov -t $COVERALLS_REPO_TOKEN coverage.info
fi