add codecov repo

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-12-02 15:35:52 +08:00
parent 6a5e7570ad
commit b5c380d16b
2 changed files with 9 additions and 6 deletions

View File

@ -12,7 +12,7 @@ pipeline:
test: test:
image: appleboy/golang-testing image: appleboy/golang-testing
pull: true pull: true
secrets: [ codecov_token, telegram_token, telegram_to ] secrets: [ telegram_token, telegram_to ]
commands: commands:
- make vet - make vet
- make lint - make lint
@ -20,10 +20,16 @@ pipeline:
- make misspell-check - make misspell-check
- make test - make test
- make coverage - make coverage
- make build
# build binary for docker image
- make static_build - make static_build
codecov:
image: robertstettner/drone-codecov
secrets: [ codecov_token ]
files:
- .cover/coverage.txt
when:
event: [ push, pull_request ]
release: release:
image: appleboy/golang-testing image: appleboy/golang-testing
pull: true pull: true

View File

@ -140,9 +140,6 @@ endif
coverage: coverage:
sed -i '/main.go/d' coverage.txt sed -i '/main.go/d' coverage.txt
curl -s https://codecov.io/bash > .codecov && \
chmod +x .codecov && \
./.codecov -f coverage.txt
clean: clean:
go clean -x -i ./... go clean -x -i ./...