gerrit: bt2: add dev and prod mode
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 5 Jun 2019 21:41:44 +0000 (17:41 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 5 Jun 2019 21:41:44 +0000 (17:41 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
jobs/babeltrace.yaml
scripts/babeltrace/build.sh

index 650ee2d69a751d448e7a9f9f8c281156e034b861..5de63d8148524954d440a6252526af86dc31b777 100644 (file)
     node: 'master' # Applies only to matrix flyweight task
     execution-strategy:
       combination-filter: |
-        (build=="std" && conf=="python-bindings") || (arch=="amd64")
+        ((build=="std" && conf=="python-bindings" && bt2_mode=="std") || (arch=="amd64")) && (! (arch="amd64" && (build=="oot" || build=="dist") && bt2_mode=="dev"))
     axes:
       - axis:
          type: slave
          type: user-defined
          name: build
          values: '{obj:build}'
+      - axis:
+         type: user-defined
+         name: bt2_mode
+         values: '{obj:bt2_mode}'
 
     <<: *babeltrace_build_builders_defaults
     <<: *babeltrace_build_publishers_gerrit
           arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
           build: !!python/tuple [std, oot, dist]
           conf: !!python/tuple [std, python-bindings]
+          bt2_mode: !!python/tuple [dev, std]
index 8ef400830a81dc640b948d3658f928508561053b..da5f4ab96ff4ec1aa46a74e75ec5b97abbf72e66 100755 (executable)
@@ -74,6 +74,7 @@ arch=${arch:-}
 conf=${conf:-}
 build=${build:-}
 cc=${cc:-}
+bt2_mode=${bt2_mode:-}
 
 
 SRCDIR="$WORKSPACE/src/babeltrace"
@@ -197,9 +198,18 @@ cd "$SRCDIR"
 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
+case "$bt2_mode" in
+dev)
+    echo "Developer mode"
+    export BABELTRACE_DEBUG_MODE=1
+    export BABELTRACE_DEV_MODE=1
+    export BABELTRACE_MINIMAL_LOG_LEVEL=VERBOSE
+    ;;
+*)
+    echo "Production mode (Default)"
+    export BABELTRACE_MINIMAL_LOG_LEVEL=INFO
+    ;;
+esac
 
 # Set configure options for each build configuration
 CONF_OPTS=""
This page took 0.030425 seconds and 4 git commands to generate.