gnucash/util/ci/afterfailure
lmat 121dd8cf90 Configure travis to use docker for CI
Currently, there is an ubuntu 14.04 and archlinux build and they both
use cmake with ninja, cmake with make, and autotools to build. It should
be straightforward to add another configuration.

Travis checks out the correct branch of the source code for us, and we
expose that source code to the docker container using a docker run
"volume".
2017-09-09 09:56:34 -04:00

24 lines
815 B
Bash
Executable File

#!/bin/bash
if [[ "$BUILDTYPE" == "cmake-make" ]] || [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
echo "########################";
echo "##### LastTest.log #####";
echo "########################";
cat /build/Testing/Temporary/LastTest.log;
elif [[ "$BUILDTYPE" == "autotools" ]]; then
find . -name 'test*.log' -print0 |
while IFS= read -r -d '' logfile; do
SIZE=$((${#logfile} + 12));
HRULE=$(head -c "$SIZE" < /dev/zero | tr '\0' '#');
echo $HRULE;
echo "##### ${logfile} #####";
echo $HRULE;
cat -- "$logfile";
echo $'\n'$'\n';
done;
else
echo "Unknown BUILDTYPE: \"$BUILDTYPE\", cannot create failure information.";
fi
# This script should fail so that the entire script will fail.
exit 1;