X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbarectf%2Fbuild.sh;h=cd0c31c88be67ba37a0b4c6b2b83a2acaa7cad0d;hb=0c4ab1e7a9ed81e6841c7af3671b39ed2739fa6f;hp=9f07c6d33251b29ec47412bd8b54ca4a3342cc87;hpb=8b35846606a4b1a40fdbabb1b8c9839203ecfce7;p=lttng-ci.git diff --git a/scripts/barectf/build.sh b/scripts/barectf/build.sh index 9f07c6d..cd0c31c 100755 --- a/scripts/barectf/build.sh +++ b/scripts/barectf/build.sh @@ -1,6 +1,6 @@ -#!/bin/sh -exu +#!/bin/sh # -# Copyright (C) 2015 - Michael Jeanson +# Copyright (C) 2015-2020 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 @@ -15,13 +15,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# 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 +28,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 . "$PYENV_HOME/bin/activate" set -u -# install setuptools first -pip install tox poetry +pip install --quiet tox poetry cd "$SRCDIR" -# install barectf in virtual environment -poetry config virtualenvs.create false - # test tox -v