Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | set -x | ||||
3 | set -e | ||||
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/catalog/src -r ../ -o coverage.xml ./) | ||||
10 | fi |