spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | set -x | ||||
3 | set -e | ||||
4 | |||||
5 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||||
6 | source "$JDIR"/util.sh | ||||
7 | |||||
8 | if [[ "$JOB_NAME" == *"code-coverage" ]]; then | ||||
9 | BASE="`pwd | sed -e 's|/|\\\/|g'`\\" | ||||
10 | (cd build && gcovr -x -f $BASE/core -f $BASE/daemon -f $BASE/rib -r ../ -o coverage.xml ./) | ||||
11 | fi |