fwupd/contrib/ci/centos.sh
Mario Limonciello 1e17457b16 Allow building the documentation with gi-docgen and gtk-doc
Until gi-docgen is declared stable support either of them.
This effectively means that hand builds and CI builds will use
gi-docgen, but distro builds use gtk-doc-tools.
2021-06-09 22:21:53 +01:00

29 lines
506 B
Bash
Executable File

#!/bin/sh
set -e
set -x
#clone test firmware
if [ "$CI_NETWORK" = "true" ]; then
./contrib/ci/get_test_firmware.sh
export G_TEST_SRCDIR=`pwd`/fwupd-test-firmware/installed-tests
fi
#build
rm -rf build
mkdir -p build
cd build
meson .. \
--werror \
-Dplugin_uefi_capsule=false \
-Dplugin_dell=false \
-Dplugin_modem_manager=false \
-Dplugin_synaptics_mst=true \
-Dplugin_flashrom=true \
-Dintrospection=true \
-Ddocs=gtkdoc \
-Dpkcs7=false \
-Dman=true
ninja-build -v
ninja-build test -v
cd ..