Browse Source

Store CI test logs

For post-mortem introspection it is helpful to have the full logs of
test runs available for download.
pull/1672/head
Alexander Simmerl 6 years ago
parent
commit
d292fa4541
No known key found for this signature in database GPG Key ID: 4694E95C9CC61BDA
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      .circleci/config.yml

+ 4
- 1
.circleci/config.yml View File

@ -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


Loading…
Cancel
Save