Files
flatpak/ci/build-check.sh
Colin Walters 841e6c10a6 ci: Rework to be based on FAH + priv container
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.
2017-06-15 09:02:45 +02:00

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