1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

exclude vendor folder in coverage

This commit is contained in:
Darien Raymond 2017-01-08 22:32:33 +01:00
parent 74ad6eaff9
commit 22bd34e63f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -41,7 +41,7 @@ for OUT_FILE in $(find ${V2RAY_COV} -name "*.out"); do
done done
COV_SORTED=${V2RAY_COV}/coverallsorted.out COV_SORTED=${V2RAY_COV}/coverallsorted.out
cat ${COVERAGE_FILE} | sort -t: -k1 | grep -vw "testing" | grep -v ".pb.go" > ${COV_SORTED} cat ${COVERAGE_FILE} | sort -t: -k1 | grep -vw "testing" | grep -v ".pb.go" | grep -vw "vendor" > ${COV_SORTED}
echo "mode: set" | cat - ${COV_SORTED} > ${COVERAGE_FILE} echo "mode: set" | cat - ${COV_SORTED} > ${COVERAGE_FILE}
if [ "$FAIL" -eq 0 ]; then if [ "$FAIL" -eq 0 ]; then