Skip to content

Commit

Permalink
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -73,8 +73,10 @@ pipeline:
coverage:
image: plugins/coverage
server: https://coverage.gitea.io
commands:
- make test-coverage
when:
event: [ push, tag, pull_request ]
event: [ push, tag ]

docker:
image: plugins/docker
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -80,6 +80,10 @@ integrations: build

.PHONY: test
test:
go test $(PACKAGES)

.PHONY: test-coverage
test-coverage:
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;

.PHONY: test-vendor

0 comments on commit ff96bda

Please sign in to comment.