system-tests: move to babeltrace 1.5 stable
[lttng-ci.git] / scripts / barectf / build.sh
index 5eafb08ae3c9ce019a1317e12fa6f8d39e8c73e1..cd0c31c88be67ba37a0b4c6b2b83a2acaa7cad0d 100755 (executable)
@@ -1,6 +1,6 @@
-#!/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
@@ -30,22 +28,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
This page took 0.022824 seconds and 4 git commands to generate.