mirror of https://github.com/certusone/wasmd.git
Exclude generate proto code files in coverage (#320)
* Exclude generate proto code files in coverage * X
This commit is contained in:
parent
8ee7038a41
commit
16e88ecb7f
|
@ -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
|
||||
|
|
36
.codecov.yml
36
.codecov.yml
|
@ -14,9 +14,16 @@ 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:
|
||||
|
@ -24,10 +31,27 @@ comment:
|
|||
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/"
|
||||
|
|
Loading…
Reference in New Issue