Skip to content

Commit

Permalink
upload test results to transfer.sh for investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed May 7, 2017
1 parent cb40b69 commit 01079bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .travis.upload-test-results.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

HERE="`dirname \"$0\"`"
HERE="`( cd \"$HERE\" && pwd )`"
if [ -z "$HERE" ] ; then
# error; for some reason, the path is not accessible
# to the script (e.g. permissions re-evaled after suid)
exit 1 # fail
fi

ARTIFACTS_DIR="${HERE}/samples-and-tests/just-test-cases/test-result"
ARTIFACTS_FILE=${TRAVIS_JOB_NUMBER}-test-result.tar.gz

ls $ARTIFACTS_DIR
echo "COMPRESSING build artifacts."
cd $ARTIFACTS_DIR
tar -zcvf $ARTIFACTS_FILE *
# upload to http://transfer.sh
echo "Uploading to transfer.sh"
curl --upload-file $ARTIFACTS_FILE http://transfer.sh
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ addons:
script: ant -buildfile ./framework/build.xml test

after_failure:
find samples-and-tests -name '*.failed.html' -exec echo {} \; -exec cat {} \;
- find samples-and-tests -name '*.failed.html' -exec echo {} \; -exec cat {} \;
- ./.travis.upload-test-results.sh

notifications:
webhooks:
Expand Down

0 comments on commit 01079bf

Please # to comment.