Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude generate proto code files in coverage #320

Merged
merged 2 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 30 additions & 6 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,44 @@ coverage:
default:
threshold: 1% # allow this much decrease on project
app:
target: 80%
paths: "app/"

target: 70%
flags:
- app
modules:
target: 70%
flags:
- modules
client:
flags:
- client
changes: false

comment:
layout: "reach, diff, files"
behavior: default # update if exists else create new
require_changes: true

flags:
app:
paths:
- "app/"
modules:
paths:
- "x/"
- "!x/**/client/" # ignore client package
client:
paths:
- "x/**/client/"

ignore:
- "*.md"
- "*.rst"
- "cmd/"
- "contrib/"
- "docs/"
- "networks/"
- "docker/"
- "scripts/"
- "*.md"
- "*.rst"
- "x/**/*.pb.go"
- "x/**/*.pb.gw.go"
- "x/**/test_common.go"
- "x/**/testdata/"