Skip to content

Commit 01079bf

Browse files
committed
upload test results to transfer.sh for investigation
1 parent cb40b69 commit 01079bf

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.travis.upload-test-results.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
HERE="`dirname \"$0\"`"
4+
HERE="`( cd \"$HERE\" && pwd )`"
5+
if [ -z "$HERE" ] ; then
6+
# error; for some reason, the path is not accessible
7+
# to the script (e.g. permissions re-evaled after suid)
8+
exit 1 # fail
9+
fi
10+
11+
ARTIFACTS_DIR="${HERE}/samples-and-tests/just-test-cases/test-result"
12+
ARTIFACTS_FILE=${TRAVIS_JOB_NUMBER}-test-result.tar.gz
13+
14+
ls $ARTIFACTS_DIR
15+
echo "COMPRESSING build artifacts."
16+
cd $ARTIFACTS_DIR
17+
tar -zcvf $ARTIFACTS_FILE *
18+
# upload to http://transfer.sh
19+
echo "Uploading to transfer.sh"
20+
curl --upload-file $ARTIFACTS_FILE http://transfer.sh

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ addons:
1717
script: ant -buildfile ./framework/build.xml test
1818

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

2223
notifications:
2324
webhooks:

0 commit comments

Comments
 (0)