From b5c380d16b53dba25a5162a85c5d3fccb18640fc Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 2 Dec 2017 15:35:52 +0800 Subject: [PATCH] add codecov repo Signed-off-by: Bo-Yi Wu --- .drone.yml | 12 +++++++++--- Makefile | 3 --- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 82e30c9..61c98d8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ pipeline: test: image: appleboy/golang-testing pull: true - secrets: [ codecov_token, telegram_token, telegram_to ] + secrets: [ telegram_token, telegram_to ] commands: - make vet - make lint @@ -20,10 +20,16 @@ pipeline: - make misspell-check - make test - make coverage - - make build - # build binary for docker image - make static_build + codecov: + image: robertstettner/drone-codecov + secrets: [ codecov_token ] + files: + - .cover/coverage.txt + when: + event: [ push, pull_request ] + release: image: appleboy/golang-testing pull: true diff --git a/Makefile b/Makefile index 04b3b51..c033206 100644 --- a/Makefile +++ b/Makefile @@ -140,9 +140,6 @@ endif coverage: sed -i '/main.go/d' coverage.txt - curl -s https://codecov.io/bash > .codecov && \ - chmod +x .codecov && \ - ./.codecov -f coverage.txt clean: go clean -x -i ./...