Skip to content

Commit e0dc863

Browse files
committed
bamboo-specs: export test results
1 parent f09cc45 commit e0dc863

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

bamboo-specs/bamboo.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@
9797
'volumes':
9898
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
9999
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
100+
'final-tasks':
101+
- 'test-parser':
102+
# The default pattern, '**/test-reports/*.xml', works, so don't set
103+
# the test-results property.
104+
'type': 'junit'
105+
'ignore-time': true
106+
- 'clean'
100107
'key': 'TEST'
101108
'requirements':
102109
- 'adg-docker': 'true'
@@ -111,7 +118,18 @@
111118
112119
set -e -f -u -x
113120
114-
make VERBOSE=1 go-deps go-test
121+
make \
122+
GOMAXPROCS=1 \
123+
VERBOSE=1 \
124+
go-deps go-tools
125+
126+
make \
127+
TEST_REPORTS_DIR="./test-reports/" \
128+
VERBOSE=1 \
129+
go-test \
130+
;
131+
132+
exit "$(cat ./test-reports/test-exit-code.txt)"
115133
116134
'Artifact':
117135
'artifacts':

0 commit comments

Comments
 (0)