File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ addons:
1717script : ant -buildfile ./framework/build.xml test
1818
1919after_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
2223notifications :
2324 webhooks :
You can’t perform that action at this time.
0 commit comments