X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace%2Fbuild.sh;h=9a5a29a32e8e0a25f7db22b2fedc9aeb9e413869;hb=9d56171a2dbaa3992a455c741ac55da952b5d100;hp=92c47ed32a8ff29e7af3ddae378b14e27d9e7469;hpb=624c5a2510beb74da659527dbe319481aefbd750;p=lttng-ci.git diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index 92c47ed..9a5a29a 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -1,7 +1,7 @@ #!/bin/bash -exu # -# Copyright (C) 2015 - Jonathan Rajotte-Julien -# 2016 - Michael Jeanson +# Copyright (C) 2015 Jonathan Rajotte-Julien +# 2016-2019 Michael Jeanson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -222,7 +222,7 @@ python-bindings) CONF_OPTS="${CONF_OPTS} --enable-python-bindings-doc --enable-python-plugins" fi ;; -production) +prod) echo "Production build" # Unset the developper variables @@ -235,9 +235,21 @@ production) export PYTHON_CONFIG="python3-config" CONF_OPTS="--enable-python-bindings --enable-python-bindings-doc --enable-python-plugins" ;; +min) + echo "Minimal build" + CONF_OPTS="" + ;; *) echo "Standard build" CONF_OPTS="" + + # Enable the python bindings / plugins by default with babeltrace2 + # the test suite is mostly useless without it. + if vergte "$PACKAGE_VERSION" "2.0"; then + export PYTHON="python3" + export PYTHON_CONFIG="python3-config" + CONF_OPTS="${CONF_OPTS} --enable-python-bindings --enable-python-plugins" + fi ;; esac @@ -286,8 +298,11 @@ esac $MAKE -j "$($NPROC)" V=1 $MAKE install -# Run tests +# Run tests, don't fail now, we want to run the archiving steps +set +e $MAKE --keep-going check +ret=$? +set -e # Copy tap logs for the jenkins tap parser rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap" @@ -308,4 +323,7 @@ if [ "$build" = "dist" ]; then rm -rf "$BUILD_PATH" fi +# Exit with the return code of the test suite +exit $ret + # EOF