Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-08-15 14:51:10 +08:00
parent 2186984e72
commit 39ba4702cc
2 changed files with 3 additions and 6 deletions

View File

@ -19,7 +19,6 @@ pipeline:
commands: commands:
- make vet - make vet
- make lint - make lint
- make test
- make test-vendor - make test-vendor
build: build:
@ -41,7 +40,8 @@ pipeline:
GOPATH: /srv/app GOPATH: /srv/app
commands: commands:
- make ssh-server - make ssh-server
- coverage all - make test
- make coverage
codecov: codecov:
image: robertstettner/drone-codecov image: robertstettner/drone-codecov

View File

@ -125,10 +125,7 @@ endif
docker push $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE):$(tag) docker push $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE):$(tag)
coverage: coverage:
sed -i '/main.go/d' .cover/coverage.txt sed -i '/main.go/d' coverage.txt
curl -s https://codecov.io/bash > .codecov && \
chmod +x .codecov && \
./.codecov -f .cover/coverage.txt
clean: clean:
$(GO) clean -x -i ./... $(GO) clean -x -i ./...