X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-ivc%2Fbuild.sh;h=62069a4f7616fb5364f383b8044b3bb3e4d805c5;hb=abdf6988d6ed87e9de5886686f818a4f86d454b3;hp=c008944bf11a5985fc2d67088d812a1eb6473ca0;hpb=691f7f2da9736392e57e0e6b4751241257f816a7;p=lttng-ci.git diff --git a/scripts/lttng-ivc/build.sh b/scripts/lttng-ivc/build.sh index c008944..62069a4 100644 --- a/scripts/lttng-ivc/build.sh +++ b/scripts/lttng-ivc/build.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (C) 2017 - Jonathan Rajotte-Julien +# Copyright (C) 2017 Jonathan Rajotte-Julien # # 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