gnucash/util/ci/commonbuild
lmat 0cdd776941 Adding python tests to cmake
And removing some debugging comments
2017-09-12 14:20:18 +02:00

26 lines
630 B
Bash

#!/bin/bash -e
mkdir build;
cd build;
export TZ="America/Los_Angeles";
mkdir -p /root/.local/share;
if [[ "$BUILDTYPE" == "cmake-make" ]]; then
cmake ../gnucash
make -j 4;
make check || ../afterfailure;
elif [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
cmake ../gnucash -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -DENABLE_DEBUG=on -G Ninja
ninja
ninja check || ../afterfailure;
elif [[ "$BUILDTYPE" == "autotools" ]]; then
../gnucash/autogen.sh;
../gnucash/configure --enable-python;
make;
make check || ../afterfailure;
else
echo "Unknown buildtype: \"$BUILDTYPE\". Not building.";
fi