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]
#!/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
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)
virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
set +ux
+# shellcheck disable=SC1091
. "$PYENV_HOME/bin/activate"
set -ux
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