jjb: lttng-ust: Add FreeBSD jobs
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 16 Oct 2020 18:38:18 +0000 (14:38 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 16 Oct 2020 18:38:18 +0000 (14:38 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/lttng-ust.yaml
scripts/lttng-ust/build.sh

index c8dbdb830e2678a8eeb80380e00006f8cf0e5afb..ca49441b36ba7e8123c8f98ed6a20a2223bc004c 100644 (file)
           conf: !!python/tuple [std]
           liburcu_version: !!python/tuple [stable-0.12, master]
           filter: ''
+      - 'lttng-ust_{version}_{buildtype}':
+          buildtype: freebsdbuild
+          version: master
+          arch: !!python/tuple [freebsd]
+          build: !!python/tuple [std]
+          conf: !!python/tuple [agents]
+          liburcu_version: !!python/tuple [stable-0.12, master]
+          filter: ''
       - 'lttng-ust_{version}_cppcheck':
           version: master
       - 'lttng-ust_{version}_scan-build':
index 6b6f34164cf16fc160a0b8497b8c2259f42c0f27..acae6016d62b878549a28ab4a9f0e285e48749a1 100755 (executable)
@@ -176,12 +176,24 @@ fi
 
 # Set platform variables
 case "$arch" in
+freebsd)
+    export MAKE=gmake
+    export TAR=tar
+    export NPROC="getconf _NPROCESSORS_ONLN"
+    export CPPFLAGS="-I/usr/local/include $CPPFLAGS"
+    export LDFLAGS="-L/usr/local/lib $LDFLAGS"
+    export PYTHON="python3"
+    export PYTHON_CONFIG="python3-config"
+    export CLASSPATH='/usr/local/share/java/classes/*'
+    ;;
+
 *)
     export MAKE=make
     export TAR=tar
     export NPROC=nproc
     export PYTHON="python3"
     export PYTHON_CONFIG="python3-config"
+    export CLASSPATH='/usr/share/java/*'
     ;;
 esac
 
@@ -215,7 +227,6 @@ static)
 agents)
     echo "Java and Python agents configuration"
 
-    export CLASSPATH='/usr/share/java/*'
     CONF_OPTS+=("--enable-java-agent-all" "--enable-jni-interface" "--enable-python-agent")
     ;;
 
This page took 0.024489 seconds and 4 git commands to generate.