mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Travis - use ctest built-in feature to verbosely log test failures
Setting CTEST_OUTPUT_ON_FAILURE will cause ctest to log all output from failing tests (and only from failing tests). This will reduce our ci output in case of failures as our homebrew script 'afterfailure' would output all test logs in case of failure not only the output of failed tests.
This commit is contained in:
parent
95857a8b99
commit
b5dfef628e
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$BUILDTYPE" == "cmake-make" ]] || [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
|
||||
echo "########################";
|
||||
echo "##### LastTest.log #####";
|
||||
echo "########################";
|
||||
cat /build/Testing/Temporary/LastTest.log;
|
||||
else
|
||||
echo "Unknown BUILDTYPE: \"$BUILDTYPE\", cannot create failure information.";
|
||||
fi
|
||||
# This script should fail so that the entire script will fail.
|
||||
exit 1;
|
@ -5,15 +5,16 @@ mkdir -p "$HOME"/.local/share
|
||||
mkdir build
|
||||
cd build
|
||||
export TZ="America/Los_Angeles"
|
||||
export CTEST_OUTPUT_ON_FAILURE=On
|
||||
|
||||
if [[ "$BUILDTYPE" == "cmake-make" ]]; then
|
||||
cmake ../gnucash $PLATFORM_CMAKE_OPTS
|
||||
make -j 4
|
||||
make check || ../afterfailure
|
||||
make check
|
||||
elif [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
|
||||
cmake ../gnucash -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -G Ninja $PLATFORM_CMAKE_OPTS
|
||||
ninja
|
||||
ninja check || ../afterfailure;
|
||||
ninja check
|
||||
else
|
||||
echo "Unknown buildtype: \"$BUILDTYPE\". Not building."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user