-#!/bin/sh -exu
+#!/bin/sh
#
-# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
+# Copyright (C) 2015-2020 Michael Jeanson <mjeanson@efficios.com>
#
# 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
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# 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
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