lasp/scripts/build_ubuntu.sh
J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F 1bf022d648
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing
ci: Ubuntu build: added git to list of install packages
2023-07-24 20:02:18 +02:00

23 lines
573 B
Bash
Executable File

#!/bin/sh
# Build LASP on Arch 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 libopenblas-dev python3-pip libfftw3-dev libusb-1.0-0-dev libpulse-dev python3-build
# Build
git submodule update --init --recursive
python3 -m build
python3 -m venv .venv
source .venv/bin/activate
pip install pytest
pip install dist/lasp-*linux_x86_64.whl
# Test
pytest