blob: a00f8f13155a05cec3f2d099e74e50a5e9f759d7 [file] [log] [blame]
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07001#!/usr/bin/env bash
2set -x
3set -e
4
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -08005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07007
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -08008if [[ "$JOB_NAME" == *"code-coverage" ]]; then
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07009 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
10 (cd build && gcovr -x -f $BASE/core -f $BASE/daemon -f $BASE/rib -r ../ -o coverage.xml ./)
11fi