lasp/scripts/build_ubuntu.sh
J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F. 63122b8a42
Some checks are pending
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is pending
build(Not-sh-but-bash): Changed from sh to bash shell
2023-09-17 19:52:31 +02:00

23 lines
596 B
Bash
Executable File

#!/bin/bash
# Build LASP on Ubuntu Linux, assuming we start in a clean docker container.
# After that, test stuff.
# Assumptions
# - CWD is root of lasp repository
# - Nothing is installed
# Stop on first error
set -e
# Update cache
apt update
# Install requirements
apt install -y git python3-virtualenv python3-venv libopenblas-dev python3-pip libfftw3-dev libusb-1.0-0-dev libpulse-dev python3-build
# Build
git submodule update --init --recursive
python3 -m venv .venv
source .venv/bin/activate
pip install build pytest
python3 -m build
pip install dist/lasp-*linux_x86_64.whl
# Test
pytest