X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=scripts%2Fbarectf%2Fbuild.sh;h=f78f163d97423a1b20fd9831888320f6a2f61812;hb=5dd2d23677808c8640dfcbaea09bf3dee45b18e5;hp=9f07c6d33251b29ec47412bd8b54ca4a3342cc87;hpb=8b35846606a4b1a40fdbabb1b8c9839203ecfce7;p=lttng-ci.git diff --git a/scripts/barectf/build.sh b/scripts/barectf/build.sh index 9f07c6d..f78f163 100755 --- a/scripts/barectf/build.sh +++ b/scripts/barectf/build.sh @@ -1,27 +1,13 @@ -#!/bin/sh -exu +#!/bin/sh # -# Copyright (C) 2015 - Michael Jeanson -# -# 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 -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2015-2023 Michael Jeanson +# SPDX-License-Identifier: GPL-2.0-or-later -# Has to be set in the environment -#CODECOV_TOKEN="" +set -exu SRCDIR="src/barectf" PYTHON3="python3" -P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") PYENV_HOME=$WORKSPACE/.pyenv/ # Delete previously built virtualenv @@ -30,20 +16,17 @@ if [ -d "$PYENV_HOME" ]; then fi # Create virtualenv and install necessary packages -virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME" +virtualenv -p $PYTHON3 "$PYENV_HOME" set +u +# shellcheck disable=SC1090,SC1091 . "$PYENV_HOME/bin/activate" set -u -# install setuptools first -pip install tox poetry +pip install --quiet poetry tox cd "$SRCDIR" -# install barectf in virtual environment -poetry config virtualenvs.create false - # test tox -v