Merge PR #4825: Fix upload_coverage CI Job
This commit is contained in:
parent
68dd969b4d
commit
e26ab1d116
|
@ -141,10 +141,11 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: filter out DONTCOVER
|
name: filter out DONTCOVER
|
||||||
command: |
|
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
|
for filename in ${excludelist}; do
|
||||||
echo "Excluding ${filename} ..."
|
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g')
|
||||||
sed -i "\%${filename}:%d" coverage.txt
|
echo "Excluding ${filename} from coverage report..."
|
||||||
|
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
|
||||||
done
|
done
|
||||||
- run:
|
- run:
|
||||||
name: upload
|
name: upload
|
||||||
|
|
Loading…
Reference in New Issue