diff --git a/.travis.yml b/.travis.yml index 8b3416fa..0f57e89c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ jobs: - go mod vendor - go test -covermode=count -coverprofile=coverage.out -v ./... - "$GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci" + after_success: + - bash <(curl -s https://codecov.io/bash) before_deploy: "./build && ./upx_compress.sh" deploy: provider: releases diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..f99a3a27 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,25 @@ +codecov: + token: "" + 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: 88% # 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" + ignore: + - "**/*.yml" \ No newline at end of file