diff --git a/.travis.yml b/.travis.yml index a75aed92675..68c813ade1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,3 +21,7 @@ matrix: - TRAVIS_COVERAGE=1 script: - make ci + after_success: + - travis_wait make travis_coverage + - mv overalls.coverprofile coverage.txt + - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index a31bcfa48fb..6c0982af23d 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ travis_coverage: export GO111MODULE=on travis_coverage: ifeq ("$(TRAVIS_COVERAGE)", "1") @$(FAILPOINT_ENABLE) - CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; } + CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -concurrency=8 -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; } @$(FAILPOINT_DISABLE) else @echo "coverage only runs in travis."