1
0
Fork 0

attempt to fix travis build status detection

This commit is contained in:
Jan Steemann 2015-10-21 16:56:42 +02:00
parent f083fc3b66
commit 1fa5616b30
3 changed files with 10 additions and 2 deletions

View File

@ -30,6 +30,10 @@ echo
echo "$0: testing ArangoDB"
./scripts/unittest all --skipRanges true --skipTimeCritical true --skipSsl true || exit 1
success=`cat out/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json`
if test "$success" == "false"; then
exit 1
fi
echo
echo "$0: done"

View File

@ -67,7 +67,7 @@ if test $? -eq 0; then
echo "removing ${LOGFILE} ${DBDIR}"
rm -rf ${LOGFILE} ${DBDIR}
else
echo "failed - don't remove ${LOGFILE} ${DBDIR} - heres the logfile:"
echo "failed - don't remove ${LOGFILE} ${DBDIR} - here's the logfile:"
cat ${LOGFILE}
fi

View File

@ -155,10 +155,14 @@ function main (argv) {
print(x.stack);
print(JSON.stringify(r));
}
// whether or not there was an error
fs.write("out/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json", JSON.stringify(r.all_ok));
if (options.writeXmlReport) {
fs.write("out/UNITTEST_RESULT.json", JSON.stringify(r));
// should be renamed to UNITTEST_RESULT_CRASHED, because that's what it actually contains
fs.write("out/UNITTEST_RESULT_SUMMARY.txt", JSON.stringify(! r.crashed));
try {