From 003a197b71bcde27d6d79a8040ca29c827080270 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 14 Oct 2017 23:07:29 +0200 Subject: test: add JUnit Reporting integration --- .travis/report-results.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .travis/report-results.sh (limited to '.travis') diff --git a/.travis/report-results.sh b/.travis/report-results.sh new file mode 100755 index 0000000..f2413aa --- /dev/null +++ b/.travis/report-results.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +cd ${TRAVIS_BUILD_DIR} + +for report in $(find . -iname '*_test.xml'); do + echo "Publishing results from ${report}" + curl -X PUT \ + -H "Authorization: Token ${JUNIT_REPORTING_TOKEN}" \ + -H "Content-Disposition: attachement; filename=${report}" \ + --upload-file ${report} \ + ${JUNIT_REPORTING_HOST}/p/extfs/upload/${TRAVIS_BUILD_NUMBER} +done -- cgit v1.2.3