File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ GIT_REPOSITORY = http://github.com/git/git.git
1212
1313# Coverage
1414COVERAGE_REPORT = coverage.txt
15- COVERAGE_PROFILE = profile.out
1615COVERAGE_MODE = atomic
1716
1817ifneq ($(origin CI ) , undefined)
3736test-coverage :
3837 @cd $(WORKDIR ) ; \
3938 echo " " > $(COVERAGE_REPORT ) ; \
40- for dir in ` find . -name " *.go" | grep -o ' .*/' | sort | uniq` ; do \
41- $(GOTEST ) $$ dir -coverprofile=$(COVERAGE_PROFILE ) -covermode=$(COVERAGE_MODE ) ; \
42- if [ $$ ? != 0 ]; then \
43- exit 2; \
44- fi ; \
45- if [ -f $( COVERAGE_PROFILE) ]; then \
46- cat $(COVERAGE_PROFILE ) >> $(COVERAGE_REPORT ) ; \
47- rm $(COVERAGE_PROFILE ) ; \
48- fi ; \
49- done ; \
39+ $(GOTEST ) -coverprofile=$(COVERAGE_REPORT ) -coverpkg=./... -covermode=$(COVERAGE_MODE ) ./...
5040
5141clean :
5242 rm -rf $(GIT_DIST_PATH )
You can’t perform that action at this time.
0 commit comments