Exclude generate proto code files in coverage (#320)

* Exclude generate proto code files in coverage

* X
This commit is contained in:
Alexander Peters
2020-11-20 13:51:54 +01:00
committed by GitHub
parent 8ee7038a41
commit 16e88ecb7f
2 changed files with 31 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ jobs:
command: |
excludelist="$(find . -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/gaia/g')
filename=$(echo $filename | sed 's/^./github.com\/CosmWasm\/wasmd/g')
echo "Excluding ${filename} from coverage report..."
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
done