X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-ivc%2Fbuild.sh;h=484c6484026ba85bccf18809cc0573bbea933c31;hb=85ab4eb7ab0db7efb72af0620c60dbb9c8296404;hp=08f6b9b8817a11d39074ee86091a31e475994f05;hpb=5f390a0114938eb23c4e34aa6a69b9bbc2b2c3cb;p=lttng-ci.git diff --git a/scripts/lttng-ivc/build.sh b/scripts/lttng-ivc/build.sh index 08f6b9b..484c648 100644 --- a/scripts/lttng-ivc/build.sh +++ b/scripts/lttng-ivc/build.sh @@ -1,6 +1,6 @@ -#!/bin/bash -xu +#!/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 @@ -15,8 +15,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -xu + PYTHON3="python3" -P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") # Tox does not support long path venv for whatever reason. PYENV_HOME=$(mktemp -d) @@ -25,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 @@ -34,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" +tox -v -e babeltrace -- --junit-xml="${WORKSPACE}/result.xml" # Remove base venv +deactivate rm -rf "$PYENV_HOME" # Save