瀏覽代碼

Merge pull request #7463 from heyitsanthony/cov-buildi

test: install packages when building coverage tests
Anthony Romano 8 年之前
父節點
當前提交
c8ea343a76
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test

+ 2 - 0
test

@@ -110,6 +110,8 @@ function cov_pass {
 	# run code coverage for unit and integration tests
 	for t in ${PKGS}; do
 		tf=`echo $t | tr / _`
+		# cache package compilation data for faster repeated builds
+		go test -covermode=set -coverpkg $PKGS_DELIM -i -v ${REPO_PATH}/$t
 		# uses -run=Test to skip examples because clientv3/ example tests will leak goroutines
 		go test -covermode=set -coverpkg $PKGS_DELIM -timeout 15m -run=Test -v -coverprofile "$COVERDIR/${tf}.coverprofile"  ${REPO_PATH}/$t
 	done