mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-29 03:51:54 +08:00
.circleci: run tests parallelly
This commit is contained in:
@@ -55,6 +55,7 @@ jobs:
|
||||
environment:
|
||||
GO111MODULE: "on"
|
||||
working_directory: /root/go/onecloud
|
||||
parallelism: 4
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
|
||||
@@ -33,6 +33,9 @@ profile="${coverdir}/profile.out"
|
||||
if [ -z "$pkgs" ]; then
|
||||
pkgs="$(go list -mod vendor ./... | grep -vE 'host-image|hostimage')"
|
||||
fi
|
||||
if type circleci &>/dev/null; then
|
||||
pkgs="$(echo "$pkgs" | circleci tests split)"
|
||||
fi
|
||||
|
||||
echo "mode: $covermode" >"$profile"
|
||||
echo "$pkgs" | xargs -n 8 --no-run-if-empty echo \
|
||||
|
||||
Reference in New Issue
Block a user