-#!/bin/bash -exu
+#!/bin/bash
#
-# Copyright (C) 2019 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@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/>.
+set -exu
+
SRC_DIR="$WORKSPACE/src/babeltrace"
SCRIPT_DIR="$WORKSPACE/src/lttng-ci"
RESULTS_DIR="$WORKSPACE/results"
mkdir -p "$TMPDIR"
export TMPDIR
+function checkout_scripts() {
+ git clone https://github.com/lttng/lttng-ci.git "$SCRIPT_DIR"
+}
+
function setup_env ()
{
mkdir -p "$RESULTS_DIR"
python "$SCRIPT_PATH" --generate-report --repo-path "$SRC_DIR" --report-name "${RESULTS_DIR}/babeltrace-benchmark.pdf"
}
+checkout_scripts
setup_env
run_jobs
generate_report