diff --git a/.circleci/config.yml b/.circleci/config.yml index 96288badd..4de01e36c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -201,10 +201,9 @@ jobs: name: Run tests command: | export PATH="$GOBIN:$PATH" - make install export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')" - for pkg in $(go list github.com/cosmos/cosmos-sdk/... | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test | grep -v '/simulation' | circleci tests split --split-by=timings); do - id=$(basename "$pkg") + for pkg in $(go list ./... | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test | grep -v '/simulation' | circleci tests split --split-by=timings); do + id=$(echo "$pkg" | sed 's|[/.]|_|g') GOCACHE=off go test -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log" done - persist_to_workspace: @@ -227,6 +226,8 @@ jobs: command: | set -ex + echo "--> Concatenating profiles:" + ls /tmp/workspace/profiles/ echo "mode: atomic" > coverage.txt for prof in $(ls /tmp/workspace/profiles/); do tail -n +2 /tmp/workspace/profiles/"$prof" >> coverage.txt