ci: Add jsonfile artifact for go-test-race

So that we can better debug failures
This commit is contained in:
Daniel Nephin 2020-07-20 18:34:45 -04:00
parent 9482961b1c
commit 4843551125
1 changed files with 4 additions and 1 deletions

View File

@ -154,9 +154,10 @@ jobs:
- run: - run:
name: go test -race name: go test -race
command: | command: |
mkdir -p $TEST_RESULTS_DIR mkdir -p $TEST_RESULTS_DIR /tmp/jsonfile
gotestsum \ gotestsum \
--format=short-verbose \ --format=short-verbose \
--jsonfile /tmp/jsonfile/go-test-race.log \
--junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- \ --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- \
-tags="$GOTAGS" -p 2 \ -tags="$GOTAGS" -p 2 \
-race -gcflags=all=-d=checkptr=0 \ -race -gcflags=all=-d=checkptr=0 \
@ -168,6 +169,8 @@ jobs:
path: *TEST_RESULTS_DIR path: *TEST_RESULTS_DIR
- store_artifacts: - store_artifacts:
path: *TEST_RESULTS_DIR path: *TEST_RESULTS_DIR
- store_artifacts:
path: /tmp/jsonfile
# split off a job for the API package since it is separate # split off a job for the API package since it is separate
go-test-api: go-test-api: