]> source.dussan.org Git - gitea.git/commitdiff
go get github.com/wadey/gocovmerge when needed (#2235)
authorAntoine GIRARD <sapk@users.noreply.github.com>
Mon, 31 Jul 2017 01:29:50 +0000 (03:29 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Mon, 31 Jul 2017 01:29:50 +0000 (09:29 +0800)
Makefile

index e4fe4595fa618ba15bd92f2e840348f8a49f7118..6b2877c7269956ed68da2fed583397091f7f4960 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -126,6 +126,9 @@ test: fmt-check
 
 .PHONY: test-coverage
 test-coverage: unit-test-coverage integration-test-coverage
+       @hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+               go get -u github.com/wadey/gocovmerge; \
+       fi
        for PKG in $(PACKAGES); do\
          touch $$GOPATH/src/$$PKG/coverage.out;\
          egrep "$$PKG[^/]*\.go" integration.coverage.out > int.coverage.out;\