Merge PR #4825: Fix upload_coverage CI Job
This commit is contained in:
parent
68dd969b4d
commit
e26ab1d116
|
@ -141,10 +141,11 @@ jobs:
|
|||
- run:
|
||||
name: filter out DONTCOVER
|
||||
command: |
|
||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER' | xargs realpath --relative-to=$GOPATH/src)"
|
||||
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
|
||||
for filename in ${excludelist}; do
|
||||
echo "Excluding ${filename} ..."
|
||||
sed -i "\%${filename}:%d" coverage.txt
|
||||
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g')
|
||||
echo "Excluding ${filename} from coverage report..."
|
||||
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||
done
|
||||
- run:
|
||||
name: upload
|
||||
|
|
Loading…
Reference in New Issue