add codecov.yaml

This commit is contained in:
lyyyuna 2020-07-11 08:43:27 +08:00
parent 590461c281
commit 08687bae35
3 changed files with 11 additions and 1 deletions

View File

@ -27,4 +27,4 @@ jobs:
run: |
export DEFAULT_EXCEPT_PKGS=e2e
go test -p 1 -coverprofile=coverage.txt $(go list ./... | grep -v -E $DEFAULT_EXCEPT_PKGS)
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash) -F unittest

8
codecov.yaml Normal file
View File

@ -0,0 +1,8 @@
comment:
layout: "reach, diff, flags, files"
behavior: new
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"

View File

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
echo "test start"
bats server.bats