mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-30 10:31:21 -05:00
Installing build dependencies directly on a host should be considered an anti-pattern. Steal some of the bits from rpm-ostree's PAPR bits. Another benefit here is we avoid duplicating the build dependencies again, since we start using `yum-builddep. We only have one context now, `f25-primary`, rather than having Clang show up as a separate thing, since IMO it's not worth its own context.
19 lines
441 B
Bash
Executable File
19 lines
441 B
Bash
Executable File
#!/usr/bin/bash
|
|
# Install build dependencies, run unit tests and installed tests.
|
|
|
|
set -xeuo pipefail
|
|
|
|
dn=$(dirname $0)
|
|
. ${dn}/libbuild.sh
|
|
${dn}/build.sh
|
|
make check
|
|
|
|
if test -x /usr/bin/clang; then
|
|
git clean -dfx && git submodule foreach git clean -dfx
|
|
# And now a clang build to find unused variables; perhaps
|
|
# in the future these could parallelize
|
|
export CC=clang
|
|
export CFLAGS='-Werror=unused-variable'
|
|
build
|
|
fi
|