diff mbox series

[v12,4/5] shipabble: use xml statistics

Message ID 1513785623-30862-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v12,1/5] test: build: enable cunit output to xml | expand

Commit Message

Github ODP bot Dec. 20, 2017, 4 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 309 (muvarov:devel/master_shippable2)
 ** https://github.com/Linaro/odp/pull/309
 ** Patch: https://github.com/Linaro/odp/pull/309.patch
 ** Base sha: 6b5cdc77eb9759a2349b10372a964648559bc92c
 ** Merge commit sha: 170d41370418d3dd8da3808c800f2894f36cf9ae
 **/
 .shippable.yml     | 8 +++++++-
 scripts/Dockerfile | 3 ++-
 2 files changed, 9 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/.shippable.yml b/.shippable.yml
index 9fbb29190..6e5c66fcd 100644
--- a/.shippable.yml
+++ b/.shippable.yml
@@ -38,7 +38,13 @@  build:
     - ./bootstrap
     - ./configure --disable-test-perf
     - make
-    - sudo env ODP_SHM_DIR=/dev/shm/odp make check
+    - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check
+    - wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl
+    - |
+      for FILE in `find  ./test ./platform/ -name  "*.xml"`; do
+         bname=`basename $FILE`;
+         xsltproc --novalid cunit-to-junit.xsl $FILE > $SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}
+      done
 
   on_failure:
     - cat config.log
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index b15282aaf..7e117971d 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -20,7 +20,8 @@  RUN sudo apt-get update && sudo apt-get install -yy \
   libtool \
   linux-headers-`uname -r` \
   mscgen \
-  ruby-dev
+  ruby-dev \
+  xsltproc
 
 RUN sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
 RUN sudo ln -s /usr/bin/clang-3.8 /usr/bin/clang