Skip to content

Commit

Permalink
Merge e8bc837 into 4acee1d
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Dec 27, 2018
2 parents 4acee1d + e8bc837 commit 3f2ae3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ travis_coverage: export GO111MODULE=on
travis_coverage:
ifeq ("$(TRAVIS_COVERAGE)", "1")
@$(GOFAIL_ENABLE)
CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(GOFAIL_DISABLE); exit 1; }
CGO_ENABLED=0 ./scripts/retool do $(GOVERALLS) -service=travis-ci -coverprofile=overalls.coverprofile || { $(GOFAIL_DISABLE); exit 1; }
CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor,tools' -- -coverpkg=./... || { $(GOFAIL_DISABLE); exit 1; }
@echo "Note: ignre tools"
grep -vE "tools" overalls.coverprofile > coverage.out
CGO_ENABLED=0 ./scripts/retool do $(GOVERALLS) -service=travis-ci -coverprofile=coverage.out || { $(GOFAIL_DISABLE); exit 1; }
@$(GOFAIL_DISABLE)
else
@echo "coverage only runs in travis."
Expand Down

0 comments on commit 3f2ae3b

Please sign in to comment.