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