From cf238f709ae087e7ade3b52f83d6fb8ab051b1ce Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 7 Feb 2019 11:30:18 -0800 Subject: [PATCH] Merge PR #3532: Don't overwrite package report files --- .circleci/config.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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