Skip to content
14 changes: 11 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ _commands:
workspace: << parameters.workspace >>
when: always
- run:
name: Copy Build Logs
name: Prepare Build Logs
working_directory: << parameters.workspace >>
command: cp -rH log/latest_build log/build
when: always
Expand Down Expand Up @@ -295,9 +295,17 @@ _commands:
workspace: << parameters.workspace >>
when: always
- run:
name: Copy Test Logs
name: Prepare Test Logs
working_directory: << parameters.workspace >>
command: cp -rH log/latest_test log/test
command: |
cp -rH log/latest_test log/test

find . -name "Test.xml" -type f | while read filename
do mv "$filename" "${filename%.xml}.txt"; done

cd build
find . -name "ctest.junit.xml" \
| xargs cp --parents -t ../test_results
when: always
- store_artifacts:
path: << parameters.workspace >>/log/test
Expand Down
1 change: 1 addition & 0 deletions .circleci/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ _common: &common
<<: *common
"executor": "parallel"
"parallel-workers": 1
"ctest-args": ["--output-junit", "ctest.junit.xml"]
"test-result":
<<: *common