From eed69e81f7830269012517691a276c4dac57d6cf Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Wed, 31 Jan 2018 16:43:16 +0300 Subject: shippable: report test results even if ci step failed According to the documentation post_ci is executed only if ci finished successfully. Move test result reporting to separate script and call it from on_success and on_failure steps. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Maxim Uvarov --- .shippable.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to '.shippable.yml') diff --git a/.shippable.yml b/.shippable.yml index 9bc2cb6f7..35292d983 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -40,14 +40,10 @@ build: - make - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check - post_ci: - - 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_success: + - ./scripts/shippable-post.sh on_failure: + - ./scripts/shippable-post.sh - cat config.log - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done -- cgit v1.2.3