From d292fa454144a3af5c8b67ed2a3ff28c9b312056 Mon Sep 17 00:00:00 2001 From: Alexander Simmerl Date: Sat, 2 Jun 2018 02:15:13 +0200 Subject: [PATCH] Store CI test logs For post-mortem introspection it is helpful to have the full logs of test runs available for download. --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 30b70f77e..ca43c4fb1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -133,18 +133,21 @@ jobs: key: v1-pkg-cache - restore_cache: key: v1-tree-{{ .Environment.CIRCLE_SHA1 }} + - run: mkdir -p /tmp/logs - run: name: Run tests command: | for pkg in $(go list github.com/tendermint/tendermint/... | grep -v /vendor/ | circleci tests split --split-by=timings); do id=$(basename "$pkg") - GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" + GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log" done - persist_to_workspace: root: /tmp/workspace paths: - "profiles/*" + - store_artifacts: + path: /tmp/logs test_persistence: <<: *defaults