mirror of https://github.com/status-im/consul.git
use 4 parallelism for go-test and print package names (#7152)
This commit is contained in:
parent
6681be918a
commit
33bfc02fda
|
@ -91,7 +91,7 @@ jobs:
|
||||||
go-test:
|
go-test:
|
||||||
docker:
|
docker:
|
||||||
- image: *GOLANG_IMAGE
|
- image: *GOLANG_IMAGE
|
||||||
parallelism: 8
|
parallelism: 4
|
||||||
environment:
|
environment:
|
||||||
<<: *ENVIRONMENT
|
<<: *ENVIRONMENT
|
||||||
GOTAGS: "" # No tags for OSS but there are for enterprise
|
GOTAGS: "" # No tags for OSS but there are for enterprise
|
||||||
|
@ -109,6 +109,8 @@ jobs:
|
||||||
- run: sudo service rsyslog start
|
- run: sudo service rsyslog start
|
||||||
- run: |
|
- run: |
|
||||||
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
|
||||||
|
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
|
||||||
|
echo $PACKAGE_NAMES
|
||||||
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -tags=$GOTAGS -p 2 -cover -coverprofile=cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
|
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -tags=$GOTAGS -p 2 -cover -coverprofile=cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
|
||||||
|
|
||||||
# save coverage report parts
|
# save coverage report parts
|
||||||
|
|
Loading…
Reference in New Issue