blob: 7b8f1af7bff264a51299f30711bb7b277c4965a6 [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
3
4IS_COVR=$( python -c "print 'yes' if 'code-coverage' in '$JOB_NAME' else 'no'" )
5
6if [[ $IS_COVR == "yes" ]]; then
7 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
8 (cd build && gcovr -x -f $BASE/src -r ../ -o coverage.xml -b ./)
9fi