jjb: babeltrace: use clang-format-16
[lttng-ci.git] / scripts / normand / build.sh
CommitLineData
85ab4eb7
PP
1#!/bin/bash -xeu
2#
3# SPDX-FileCopyrightText: 2023 Philippe Proulx <pproulx@efficios.com>
4# SPDX-License-Identifier: GPL-2.0-or-later
5
6SRCDIR="src/normand"
7VENV="$WORKSPACE/.pyenv/"
8
9# Delete previously built virtual environment just in case
10if [[ -d "$VENV" ]]; then
11 rm -rf "$VENV"
12fi
13
14# Create virtual environment and enter it
bc03607c 15virtualenv -p python3 "$VENV"
85ab4eb7
PP
16set +u
17# shellcheck disable=SC1090,SC1091
18. "$VENV/bin/activate"
19set -u
20
21# Install Poetry and pytest
bc03607c 22pip install poetry pytest
85ab4eb7
PP
23
24# Install the cloned version of Normand.
25#
26# Poetry doesn't create another virtual environment because it reuses
27# the current one.
28cd "$SRCDIR"
29poetry install
30
31# Test
32pytest -v
33
34# EOF
This page took 0.023794 seconds and 4 git commands to generate.