From 6ca421a1120416d276b0e7612a0890b8803c5c3c Mon Sep 17 00:00:00 2001 From: Tina Maria Thomas Date: Mon, 9 Nov 2020 20:38:03 -0500 Subject: [PATCH] codecov.io configuration(#237) --- .travis.yml | 2 +- codecov.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index 8b3416fa..f6d679d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..3848b4e5 --- /dev/null +++ b/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: 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"