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