File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -274,10 +274,15 @@ jobs:
274
274
- run :
275
275
name : Merge cached test results with results provided by circle (if any)
276
276
command : |
277
- [[ -f "$CIRCLE_INTERNAL_TASK_DATA/circle-test-results/results.json" ]] && circle_exists=1
277
+ CIRCLE_TEST_RESULTS_FILE="$CIRCLE_INTERNAL_TASK_DATA/circle-test-results/results.json"
278
+ [[ -f "$CIRCLE_TEST_RESULTS_FILE" ]] && circle_exists=1
278
279
[[ -f "$TEST_RESULTS_FILE" ]] && cached_exists=1
279
280
if [[ -z "$circle_exists" ]] || [[ -z "$cached_exists" ]]; then
280
281
# Only one exists, CirclePlugin will try to look for both so we're good.
282
+ if [[ -n "$circle_exists" ]]; then
283
+ echo "Copying over circle test results file for caching"
284
+ cp "$CIRCLE_TEST_RESULTS_FILE" "$TEST_RESULTS_FILE"
285
+ fi
281
286
exit 0
282
287
fi
283
288
@@ -293,15 +298,16 @@ jobs:
293
298
> /tmp/new-test-results.json
294
299
# Overwrite the previously cached results with the merged file
295
300
mv -f /tmp/new-test-results.json "$TEST_RESULTS_FILE"
301
+ - save_cache :
302
+ key : v1-test-results-{{ .Branch }}-{{ .BuildNum }}
303
+ paths :
304
+ - " /tmp/test-results"
296
305
- run :
297
306
name : Run all tests
298
307
command : ./dev/run-scala-tests.py \
299
308
| tee -a "/tmp/run-scala-tests.log"
300
309
no_output_timeout : 15m
301
- - save_cache :
302
- key : v1-test-results-{{ .Branch }}-{{ .BuildNum }}
303
- paths :
304
- - " /tmp/test-results"
310
+
305
311
- store_artifacts :
306
312
path : /tmp/run-scala-tests.log
307
313
destination : run-scala-tests.log
You can’t perform that action at this time.
0 commit comments