blob: e6ecdf32a1b82bd0bf9dbfecea84a9e6bf674df2 [file] [log] [blame]
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -08001#!/usr/bin/env bash
2set -x
3set -e
4
Alexander Afanasyevc7c99002015-10-09 17:27:30 -07005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -08007
Alexander Afanasyevc7c99002015-10-09 17:27:30 -07008if [[ "$JOB_NAME" == *"code-coverage" ]]; then
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -08009 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
10 (cd build && gcovr -x -f $BASE/src -r ../ -o coverage.xml -b ./)
11fi