blob: e6ecdf32a1b82bd0bf9dbfecea84a9e6bf674df2 [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
Alexander Afanasyev33ce4c32014-10-24 11:19:45 -07003set -e
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04004
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04007
Alexander Afanasyev18846942015-08-18 23:17:15 -07008if [[ "$JOB_NAME" == *"code-coverage" ]]; then
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04009 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
10 (cd build && gcovr -x -f $BASE/src -r ../ -o coverage.xml -b ./)
11fi