diff --git a/.build.yml b/.build.yml index 1ba4c4d..da30cc0 100644 --- a/.build.yml +++ b/.build.yml @@ -1,11 +1,10 @@ image: alpine/edge packages: - go - # Required by codecov - - bash - - findutils sources: - https://github.com/emersion/go-msgauth +artifacts: + - coverage.html tasks: - build: | cd go-msgauth @@ -13,7 +12,6 @@ tasks: - test: | cd go-msgauth go test -coverprofile=coverage.txt -covermode=atomic ./... - - upload-coverage: | + - coverage: | cd go-msgauth - export CODECOV_TOKEN=2db2b6a5-8f23-4e1e-a6ac-6e8db41eb3d1 - curl -s https://codecov.io/bash | bash + go tool cover -html=coverage.txt -o ~/coverage.html diff --git a/README.md b/README.md index 0d1c994..1b7e77f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![godocs.io](https://godocs.io/github.com/emersion/go-msgauth?status.svg)](https://godocs.io/github.com/emersion/go-msgauth) [![builds.sr.ht status](https://builds.sr.ht/~emersion/go-msgauth/commits/master.svg?)](https://builds.sr.ht/~emersion/go-msgauth/commits/master) -[![codecov](https://codecov.io/gh/emersion/go-msgauth/branch/master/graph/badge.svg)](https://codecov.io/gh/emersion/go-msgauth) A Go library to authenticate e-mails: