X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-analyses%2Fbuild.sh;h=8f06e69a1a41d002997385b83559083c3999c5dd;hb=9fc19e2832a82f3bd4f999506bf7b19a0e34c856;hp=8d193d965b3d56b4c9af3d215bf2b78728375a8a;hpb=c7b16cb8f1862c9d51bc8542fbc7cd10388add13;p=lttng-ci.git diff --git a/scripts/lttng-analyses/build.sh b/scripts/lttng-analyses/build.sh index 8d193d9..8f06e69 100755 --- a/scripts/lttng-analyses/build.sh +++ b/scripts/lttng-analyses/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash -exu +#!/bin/bash # # Copyright (C) 2015 - Michael Jeanson # @@ -15,13 +15,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -exu + # Has to be set in the environment #CODECOV_TOKEN="" SRCDIR="src/lttng-analyses" PYTHON3="python3" -P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])") +P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))') BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build