jjb: lttng-ivc: move amd64 jobs to deb12
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 16 Aug 2023 17:58:26 +0000 (13:58 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 16 Aug 2023 19:39:05 +0000 (15:39 -0400)
Change-Id: I8879305043e87517b669f60e2c30b31e5461cdc6
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/lttng-ivc.yaml
scripts/lttng-ivc/build.sh

index 62d4194bcb6bd4212fb1f30a9e56f2b7fc87c3e7..6319e0ca7e0147a02bf5dff22e30813ce0b5f5a3 100644 (file)
     jobs:
       - 'lttng-ivc-{version}':
           version: master
-          platforms: !!python/tuple [bionic-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           liburcu_version: !!python/tuple [master]
       - 'lttng-ivc-{version}':
           version: staging
-          platforms: !!python/tuple [bionic-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           liburcu_version: !!python/tuple [master]
       - 'lttng-ivc-{version}-modules':
          version: master
-         platforms: !!python/tuple [bionic-amd64]
+         platforms: !!python/tuple [deb12-amd64]
          slave: !!python/tuple [amd64-rootnode]
          liburcu_version: !!python/tuple [master]
 
index c008944bf11a5985fc2d67088d812a1eb6473ca0..62069a4f7616fb5364f383b8044b3bb3e4d805c5 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
 # 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
@@ -18,7 +18,6 @@
 set -xu
 
 PYTHON3="python3"
-P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 
 # Tox does not support long path venv for whatever reason.
 PYENV_HOME=$(mktemp -d)
@@ -27,6 +26,7 @@ PYENV_HOME=$(mktemp -d)
 virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
 
 set +ux
+# shellcheck disable=SC1091
 . "$PYENV_HOME/bin/activate"
 set -ux
 
@@ -36,12 +36,16 @@ pip install --quiet tox
 TOXWORKDIR=$(mktemp -d)
 export TOXWORKDIR
 
-cd src/
+cd src/ || exit 1
+
+# Required to build tools < 2.11 with GCC >= 10
+export CFLAGS="-fcommon"
 
 # Run test suite via tox
 tox -v -- --junit-xml="${WORKSPACE}/result.xml"
 
 # Remove base venv
+deactivate
 rm -rf "$PYENV_HOME"
 
 # Save
This page took 0.025423 seconds and 4 git commands to generate.