Merge "ansible/lava: Add role for lava server"
[lttng-ci.git] / scripts / lttng-analyses / build.sh
index 8d193d965b3d56b4c9af3d215bf2b78728375a8a..8f06e69a1a41d002997385b83559083c3999c5dd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -exu
+#!/bin/bash
 #
 # Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+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
 
This page took 0.022336 seconds and 4 git commands to generate.