aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 14:57:08 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-28 14:57:08 -0400
commit7586a065a767f33bc57c664306875f57bd5562b7 (patch)
tree727b1da3482b905accfcf9aa693faaa111ea3904
parentbdd8485de4cde8dba67b27146feda5fd821cd7ef (diff)
downloadspmc-7586a065a767f33bc57c664306875f57bd5562b7.tar.gz
Try to store ctest results
-rw-r--r--.circleci/config.yml8
-rwxr-xr-x.circleci/test_spm.sh5
2 files changed, 12 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 54b5d9e..c14ae58 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,6 +6,7 @@ jobs:
- image: centos:7
environment:
+ TEST_RESULTS: /tmp/test-results
MALLOC_CHECK_: 1
working_directory: ~/build
@@ -39,6 +40,9 @@ jobs:
command: |
.circleci/test_spm.sh
+ - store_test_results:
+ path: /tmp/test-reports
+
build-macos:
macos:
xcode: 11.4.0
@@ -46,6 +50,7 @@ jobs:
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
DYLD_INSERT_LIBRARIES: /usr/lib/libgmalloc.dylib
+ TEST_RESULTS: /tmp/test-results
steps:
- checkout
@@ -70,6 +75,9 @@ jobs:
command: |
.circleci/test_spm.sh
+ - store_test_results:
+ path: /tmp/test-reports
+
workflows:
version: 2
build-and-test:
diff --git a/.circleci/test_spm.sh b/.circleci/test_spm.sh
index eb141e5..fc52e04 100755
--- a/.circleci/test_spm.sh
+++ b/.circleci/test_spm.sh
@@ -1,13 +1,16 @@
#!/bin/bash -e
source $(dirname "${BASH_SOURCE[0]}")/runtime.sh
+export TEST_RESULTS=${TEST_RESULTS:-/tmp/test-results}
export PREFIX=/tmp/root
export SHELL=/bin/bash
+mkdir -p "${TEST_RESULTS}"
cd build
set -x
-ctest -V
+ctest -T test
+rsync -av Testing/*/*.xml "${TEST_RESULTS}"
spm --list