blob: f2413aa29dfbdbfe689c22cb52957c28749aaf94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|