X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbarectf%2Fbuild.sh;h=39e05592ce86d23a85eb645423cfd2c0f7ae2b39;hb=7710f4771fec2afa3a774d04bf981b561871e014;hp=5eafb08ae3c9ce019a1317e12fa6f8d39e8c73e1;hpb=9b7bab3d685c4a3c5559983a9b14b7446959a6c4;p=lttng-ci.git diff --git a/scripts/barectf/build.sh b/scripts/barectf/build.sh index 5eafb08..39e0559 100755 --- a/scripts/barectf/build.sh +++ b/scripts/barectf/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -exu # -# 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,9 @@ # 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="" - SRCDIR="src/barectf" PYTHON3="python3" -P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") PYENV_HOME=$WORKSPACE/.pyenv/ # Delete previously built virtualenv @@ -30,22 +26,18 @@ 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 setuptools +pip install --quiet tox poetry cd "$SRCDIR" -# install barectf in virtual environment -./setup.py install - # test -cd tests -./test.bash +tox -v # EOF