Commit | Line | Data |
---|---|---|
b87dc589 FD |
1 | #!/bin/bash -xeu |
2 | # Copyright (C) 2017 - Francis Deslauriers <francis.deslauriers@efficios.com> | |
3 | # | |
4 | # This program is free software: you can redistribute it and/or modify | |
5 | # it under the terms of the GNU General Public License as published by | |
6 | # the Free Software Foundation, either version 3 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | $SCP_COMMAND -r "$STORAGE_USER@$STORAGE_HOST:$BASE_STORAGE_FOLDER/benchmark-results/$JOB_NAME/" ./plot-data/ | |
18 | ||
19 | PYTHON3="python3" | |
20 | ||
21 | PYENV_HOME=$WORKSPACE/.pyenv/ | |
22 | ||
23 | # Delete previously built virtualenv | |
24 | if [ -d "$PYENV_HOME" ]; then | |
25 | rm -rf "$PYENV_HOME" | |
26 | fi | |
27 | ||
28 | # Create virtualenv and install necessary packages | |
29 | virtualenv -p $PYTHON3 "$PYENV_HOME" | |
30 | ||
31 | set +ux | |
32 | . "$PYENV_HOME/bin/activate" | |
33 | set -ux | |
34 | ||
35 | pip install pandas | |
36 | pip install matplotlib | |
37 | ||
ccd5159d | 38 | python3 "$LTTNG_CI_PATH"/scripts/lttng-baremetal-tests/generate-plots.py ./plot-data/ |