Skip to content

Commit

Permalink
codecov.io configuration(#237) (#284)
Browse files Browse the repository at this point in the history
Authored by : @tinamthomas
  • Loading branch information
tinamthomas committed Dec 18, 2020
1 parent bf3f7b8 commit 7df47bb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
script:
- go mod vendor
- go test -covermode=count -coverprofile=coverage.out -v ./...
- "$GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci"
- bash <(curl -s https://codecov.io/bash)
before_deploy: "./build && ./upx_compress.sh"
deploy:
provider: releases
Expand Down
22 changes: 22 additions & 0 deletions codecov.yml
@@ -0,0 +1,22 @@
codecov:
bot: "codecov-io"
strict_yaml_branch: "yaml-config"
max_report_age: 24
disable_default_path_fixes: no
require_ci_to_pass: no
status:
project:
default:
target: 69% # the required coverage value
threshold: 1% # the leniency in hitting the target
notify:
after_n_builds: 2
wait_for_ci: yes
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: # branch names that can post comment
- "master"

0 comments on commit 7df47bb

Please sign in to comment.