Babeltrace: we do not support solaris for bt2/master
[lttng-ci.git] / scripts / babeltrace / build.sh
index 8ef400830a81dc640b948d3658f928508561053b..92c47ed32a8ff29e7af3ddae378b14e27d9e7469 100755 (executable)
@@ -199,7 +199,7 @@ eval "$(grep '^PACKAGE_VERSION=' ./configure)"
 # Enable dev mode by default for BT 2.0 builds
 export BABELTRACE_DEBUG_MODE=1
 export BABELTRACE_DEV_MODE=1
-export BABELTRACE_MINIMAL_LOG_LEVEL=VERBOSE
+export BABELTRACE_MINIMAL_LOG_LEVEL=TRACE
 
 # Set configure options for each build configuration
 CONF_OPTS=""
@@ -215,13 +215,26 @@ python-bindings)
     echo "Build with python bindings"
     # We only support bindings built with Python 3
     export PYTHON="python3"
-    export PYTHON_CONFIG="/usr/bin/python3-config"
+    export PYTHON_CONFIG="python3-config"
     CONF_OPTS="--enable-python-bindings"
 
     if vergte "$PACKAGE_VERSION" "2.0"; then
         CONF_OPTS="${CONF_OPTS} --enable-python-bindings-doc --enable-python-plugins"
     fi
     ;;
+production)
+    echo "Production build"
+
+    # Unset the developper variables
+    unset BABELTRACE_DEBUG_MODE
+    unset BABELTRACE_DEV_MODE
+    unset BABELTRACE_MINIMAL_LOG_LEVEL
+
+    # Enable the python bindings
+    export PYTHON="python3"
+    export PYTHON_CONFIG="python3-config"
+    CONF_OPTS="--enable-python-bindings --enable-python-bindings-doc --enable-python-plugins"
+    ;;
 *)
     echo "Standard build"
     CONF_OPTS=""
This page took 0.023193 seconds and 4 git commands to generate.