fwupd/contrib/ci/void.sh
Mario Limonciello cc8eb5ca8c trivial: Merge python steps from contrib/setup into helper script
This avoids having to hardcode profile targets in multiple places
and also fixes the confusing entry points into scripts both by
arguments and environment variables.

It also makes the setup script a lot more debuggable and scalable.

OS detection is a lot more robust, where it will try to use pip to
set up the distro python package, and if pip is missing try to install
it.

If OS detection fails now, a user can use --os on contrib/setup for
specifying it.
2021-09-17 10:59:35 -05:00

21 lines
373 B
Bash
Executable File

#!/bin/sh
set -e
set -x
#install dependencies
xbps-install -Suy python3
./contrib/ci/fwupd_setup_helpers.py install-dependencies --yes -o void
#clone test firmware if necessary
. ./contrib/ci/get_test_firmware.sh
#build
rm -rf build
meson build \
-Dgusb:tests=false \
-Dgcab:docs=false \
-Dconsolekit=false \
-Dsystemd=false \
-Delogind=true
ninja -C build test -v