Skip to content

Commit

Permalink
Merge PR cosmos#4825: Fix upload_coverage CI Job
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored Jul 31, 2019
1 parent 68dd969 commit e26ab1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e26ab1d

Please sign in to comment.