Alexander Afanasyev | 6e64ac9 | 2018-06-14 17:25:38 -0400 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | set -e | ||||
3 | |||||
4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||||
5 | source "$JDIR"/util.sh | ||||
6 | |||||
7 | set -x | ||||
8 | |||||
9 | if [[ $JOB_NAME == *"code-coverage" ]]; then | ||||
10 | gcovr --object-directory=build \ | ||||
11 | --output=build/coverage.xml \ | ||||
12 | --exclude="$PWD/(build|tests)" \ | ||||
13 | --root=. \ | ||||
14 | --xml | ||||
15 | fi |